From 77638bf56a1b43cc0d02a465e686b4d1de4c2ee6 Mon Sep 17 00:00:00 2001 From: GJ Date: Sun, 17 Feb 2013 12:14:20 -0500 Subject: [PATCH] Think we may have been adding some entities twice. --- .../nossr50/util/blockmeta/chunkmeta/HashChunkManager.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/HashChunkManager.java b/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/HashChunkManager.java index e11936b44..4029960bc 100755 --- a/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/HashChunkManager.java +++ b/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/HashChunkManager.java @@ -619,11 +619,9 @@ public class HashChunkManager implements ChunkManager { List tempSpawnedMobs = new ArrayList(spawnedMobs); for (Entity entity : tempSpawnedMobs) { - if (entity.isDead()) - mobsToRemove.add(entity); - - if (!entity.isValid()) + if (entity.isDead() || !entity.isValid()) { mobsToRemove.add(entity); + } } spawnedMobs.removeAll(mobsToRemove);