Nailed the IllegalAccessException (thanks to lechd).

This commit is contained in:
sk89q 2011-05-01 18:17:52 -07:00
parent eb6dd2628a
commit fecc64eafb

View File

@ -434,45 +434,36 @@ public class BukkitWorld extends LocalWorld {
continue;
}
switch (type) {
case ARROWS:
if (type == EntityType.ARROWS) {
if (ent instanceof Arrow) {
ent.remove();
num++;
}
break;
case BOATS:
} else if (type == EntityType.BOATS) {
if (ent instanceof Boat) {
ent.remove();
num++;
}
break;
case ITEMS:
} else if (type == EntityType.ITEMS) {
if (ent instanceof Item) {
ent.remove();
num++;
}
break;
case MINECARTS:
} else if (type == EntityType.MINECARTS) {
if (ent instanceof Minecart) {
ent.remove();
num++;
}
break;
case PAINTINGS:
} else if (type == EntityType.PAINTINGS) {
if (ent instanceof Painting) {
ent.remove();
num++;
}
break;
case TNT:
} else if (type == EntityType.TNT) {
if (ent instanceof TNTPrimed) {
ent.remove();
num++;
}
break;
default:
continue;
}
}