mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 05:06:45 +01:00
isValid already checks isDead
This commit is contained in:
parent
77638bf56a
commit
2744fb122c
@ -619,7 +619,7 @@ public class HashChunkManager implements ChunkManager {
|
||||
|
||||
List<Entity> tempSpawnedMobs = new ArrayList<Entity>(spawnedMobs);
|
||||
for (Entity entity : tempSpawnedMobs) {
|
||||
if (entity.isDead() || !entity.isValid()) {
|
||||
if (!entity.isValid()) {
|
||||
mobsToRemove.add(entity);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user