mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-24 02:07:39 +00:00
Nailed the IllegalAccessException (thanks to lechd).
This commit is contained in:
parent
eb6dd2628a
commit
fecc64eafb
@ -434,45 +434,36 @@ public class BukkitWorld extends LocalWorld {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (type) {
|
if (type == EntityType.ARROWS) {
|
||||||
case ARROWS:
|
if (ent instanceof Arrow) {
|
||||||
if (ent instanceof Arrow) {
|
ent.remove();
|
||||||
ent.remove();
|
num++;
|
||||||
num++;
|
}
|
||||||
}
|
} else if (type == EntityType.BOATS) {
|
||||||
break;
|
if (ent instanceof Boat) {
|
||||||
case BOATS:
|
ent.remove();
|
||||||
if (ent instanceof Boat) {
|
num++;
|
||||||
ent.remove();
|
}
|
||||||
num++;
|
} else if (type == EntityType.ITEMS) {
|
||||||
}
|
if (ent instanceof Item) {
|
||||||
break;
|
ent.remove();
|
||||||
case ITEMS:
|
num++;
|
||||||
if (ent instanceof Item) {
|
}
|
||||||
ent.remove();
|
} else if (type == EntityType.MINECARTS) {
|
||||||
num++;
|
if (ent instanceof Minecart) {
|
||||||
}
|
ent.remove();
|
||||||
break;
|
num++;
|
||||||
case MINECARTS:
|
}
|
||||||
if (ent instanceof Minecart) {
|
} else if (type == EntityType.PAINTINGS) {
|
||||||
ent.remove();
|
if (ent instanceof Painting) {
|
||||||
num++;
|
ent.remove();
|
||||||
}
|
num++;
|
||||||
break;
|
}
|
||||||
case PAINTINGS:
|
} else if (type == EntityType.TNT) {
|
||||||
if (ent instanceof Painting) {
|
if (ent instanceof TNTPrimed) {
|
||||||
ent.remove();
|
ent.remove();
|
||||||
num++;
|
num++;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
case TNT:
|
|
||||||
if (ent instanceof TNTPrimed) {
|
|
||||||
ent.remove();
|
|
||||||
num++;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user