Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-13 22:50:06 +01:00
Reverting part of a cleanup that made java cry for some obscure reason.
Dieser Commit ist enthalten in:
Ursprung
380b3f3c92
Commit
c8180e641f
@ -542,55 +542,41 @@ 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;
|
||||||
}
|
}
|
||||||
break;
|
} else if (type == EntityType.BOATS) {
|
||||||
|
|
||||||
case BOATS:
|
|
||||||
if (ent instanceof Boat) {
|
if (ent instanceof Boat) {
|
||||||
ent.remove();
|
ent.remove();
|
||||||
++num;
|
++num;
|
||||||
}
|
}
|
||||||
break;
|
} else if (type == EntityType.ITEMS) {
|
||||||
|
|
||||||
case ITEMS:
|
|
||||||
if (ent instanceof Item) {
|
if (ent instanceof Item) {
|
||||||
ent.remove();
|
ent.remove();
|
||||||
++num;
|
++num;
|
||||||
}
|
}
|
||||||
break;
|
} else if (type == EntityType.MINECARTS) {
|
||||||
|
|
||||||
case MINECARTS:
|
|
||||||
if (ent instanceof Minecart) {
|
if (ent instanceof Minecart) {
|
||||||
ent.remove();
|
ent.remove();
|
||||||
++num;
|
++num;
|
||||||
}
|
}
|
||||||
break;
|
} else if (type == EntityType.PAINTINGS) {
|
||||||
|
|
||||||
case PAINTINGS:
|
|
||||||
if (ent instanceof Painting) {
|
if (ent instanceof Painting) {
|
||||||
ent.remove();
|
ent.remove();
|
||||||
++num;
|
++num;
|
||||||
}
|
}
|
||||||
break;
|
} else if (type == EntityType.TNT) {
|
||||||
|
|
||||||
case TNT:
|
|
||||||
if (ent instanceof TNTPrimed) {
|
if (ent instanceof TNTPrimed) {
|
||||||
ent.remove();
|
ent.remove();
|
||||||
++num;
|
++num;
|
||||||
}
|
}
|
||||||
break;
|
} else if (type == EntityType.XP_ORBS) {
|
||||||
|
|
||||||
case XP_ORBS:
|
|
||||||
if (ent instanceof ExperienceOrb) {
|
if (ent instanceof ExperienceOrb) {
|
||||||
ent.remove();
|
ent.remove();
|
||||||
++num;
|
++num;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren