mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-16 03:14:04 +00:00
This commit is contained in:
@@ -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