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

View File

@ -1,7 +1,7 @@
name: MobArena
author: garbagemule
main: com.garbagemule.MobArena.MobArena
version: 0.96.2.14
version: 0.96.2.15
softdepend: [Multiverse-Core,Towny,Heroes,MagicSpells,Vault]
commands:
ma:

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