If an entity is removed while updating an entity slice, then the iteration over the entity slice's entities could throw a cryptic exception. Instead, it is better to prevent the entity removal with a useful log message. Fixes https://github.com/PaperMC/Paper/issues/9464
1.0 MiB
1.0 MiB