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 name: MobArena
author: garbagemule author: garbagemule
main: com.garbagemule.MobArena.MobArena main: com.garbagemule.MobArena.MobArena
version: 0.96.2.14 version: 0.96.2.15
softdepend: [Multiverse-Core,Towny,Heroes,MagicSpells,Vault] softdepend: [Multiverse-Core,Towny,Heroes,MagicSpells,Vault]
commands: commands:
ma: ma:

View File

@ -1255,11 +1255,16 @@ public class ArenaImpl implements Arena
for (Chunk c : chunks) { for (Chunk c : chunks) {
for (Entity e : c.getEntities()) { for (Entity e : c.getEntities()) {
if (!(e instanceof Item || e instanceof Vehicle || e instanceof Slime || e instanceof ExperienceOrb)) { if (e == null) {
continue; continue;
} }
if (e != null) { switch (e.getType()) {
case DROPPED_ITEM:
case EXPERIENCE_ORB:
case ARROW:
case MINECART:
case BOAT:
e.remove(); e.remove();
} }
} }