Fix balance of CraftBukkit start/end.

This commit is contained in:
Erik Broes
2012-01-12 19:43:34 +01:00
parent 897551e39e
commit 7d0e739f96
9 changed files with 11 additions and 13 deletions

View File

@@ -2421,11 +2421,9 @@ public class World implements IBlockAccess {
Entity entity = null;
for (int i = 0; i < list.size(); ++i) {
entity = (Entity) list.get(i);
// CraftBukkit start - fixed an NPE
if (entity == null) {
continue;
}
// CraftBukkit end
this.entityList.add(entity);
// CraftBukkit end
this.c((Entity) list.get(i));