Fix Missle Info
Dieser Commit ist enthalten in:
Ursprung
d6e6a6f3fe
Commit
4a07281f12
@ -133,22 +133,10 @@ public class Missile extends SpecialItem {
|
|||||||
return st.toString();
|
return st.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean logged = false;
|
|
||||||
|
|
||||||
private int count() {
|
private int count() {
|
||||||
int tntCount = 0;
|
EditSession e = WorldEdit.getInstance().getEditSessionFactory().getEditSession(world, -1);
|
||||||
BlockArrayClipboard arrayClipboard = (BlockArrayClipboard)clipboard;
|
BlockTypeMask blockTypeMask = new BlockTypeMask(clipboard, TNT);
|
||||||
BlockVector3 dimensions = arrayClipboard.getDimensions();
|
return e.countBlocks(clipboard.getRegion(), blockTypeMask);
|
||||||
for (int x = 0; x < dimensions.getX(); x++) {
|
|
||||||
for (int y = 0; y < dimensions.getY(); y++) {
|
|
||||||
for (int z = 0; z < dimensions.getZ(); z++) {
|
|
||||||
if (arrayClipboard.getBlock(BlockVector3.at(x, y, z)).getBlockType() == TNT) {
|
|
||||||
tntCount++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return tntCount;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren