isValid already checks isDead

This commit is contained in:
GJ 2013-02-17 14:13:29 -05:00
parent 77638bf56a
commit 2744fb122c

View File

@ -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);
}
}