mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-27 04:55:25 +01:00
Fix arrows not getting removed at arena end.
This commit is contained in:
parent
3e025ef8be
commit
ca6ee0ea3e
@ -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:
|
||||||
|
@ -1255,12 +1255,17 @@ 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()) {
|
||||||
e.remove();
|
case DROPPED_ITEM:
|
||||||
|
case EXPERIENCE_ORB:
|
||||||
|
case ARROW:
|
||||||
|
case MINECART:
|
||||||
|
case BOAT:
|
||||||
|
e.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user