Fix arrows not getting removed at arena end.

This commit is contained in:
garbagemule
2014-03-03 16:38:54 +01:00
parent 3e025ef8be
commit ca6ee0ea3e
2 changed files with 10 additions and 5 deletions
+9 -4
View File
@@ -1255,12 +1255,17 @@ public class ArenaImpl implements Arena
for (Chunk c : chunks) {
for (Entity e : c.getEntities()) {
if (!(e instanceof Item || e instanceof Vehicle || e instanceof Slime || e instanceof ExperienceOrb)) {
if (e == null) {
continue;
}
if (e != null) {
e.remove();
switch (e.getType()) {
case DROPPED_ITEM:
case EXPERIENCE_ORB:
case ARROW:
case MINECART:
case BOAT:
e.remove();
}
}
}