mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-12 10:18:36 +00:00
This commit is contained in:
@ -192,20 +192,11 @@ public class BiomeCommands extends MethodCommands {
|
||||
Collections.sort(distribution);
|
||||
for (Countable<BiomeType> c : distribution) {
|
||||
BiomeData data = biomeRegistry.getData(c.getID());
|
||||
String str;
|
||||
if (data == null) {
|
||||
str = String.format("%-7s (%.3f%%) %s #%d",
|
||||
String.valueOf(c.getAmount()),
|
||||
c.getAmount() / (double) size * 100,
|
||||
"Unknown",
|
||||
c.getID().getInternalId());
|
||||
} else {
|
||||
str = String.format("%-7s (%.3f%%) %s #%d",
|
||||
String.valueOf(c.getAmount()),
|
||||
c.getAmount() / (double) size * 100,
|
||||
data.getName(),
|
||||
c.getID().getInternalId());
|
||||
}
|
||||
String str = String.format("%-7s (%.3f%%) %s #%d",
|
||||
String.valueOf(c.getAmount()),
|
||||
c.getAmount() / (double) size * 100,
|
||||
data == null ? "Unknown" : data.getName(),
|
||||
c.getID().getInternalId());
|
||||
player.print(str);
|
||||
}
|
||||
}
|
||||
|
@ -68,11 +68,10 @@ public class AreaPickaxe implements BlockTool {
|
||||
for (int x = ox - range; x <= ox + range; ++x) {
|
||||
for (int z = oz - range; z <= oz + range; ++z) {
|
||||
for (int y = oy + range; y >= oy - range; --y) {
|
||||
BlockVector3 pos = BlockVector3.at(x, y, z);
|
||||
if (editSession.getLazyBlock(pos).getBlockType() != initialType) {
|
||||
if (editSession.getLazyBlock(x, y, z).getBlockType() != initialType) {
|
||||
continue;
|
||||
}
|
||||
editSession.setBlock(pos, BlockTypes.AIR.getDefaultState());
|
||||
editSession.setBlock(x, y, z, BlockTypes.AIR.getDefaultState());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user