Compare using BlockType, not Block for AreaPickaxe, fixes #436

This commit is contained in:
Aurora 2020-05-25 15:24:47 +02:00 committed by dordsor21
parent e23c76511d
commit 2de45458d4

View File

@ -69,7 +69,7 @@ public class AreaPickaxe implements BlockTool {
for (int x = ox - range; x <= ox + range; ++x) {
for (int y = oy - range; y <= oy + range; ++y) {
for (int z = oz - range; z <= oz + range; ++z) {
if (initialType.equals(editSession.getBlock(x, y, z))) {
if (!initialType.equals(editSession.getBlock(x, y, z).getBlockType())) {
continue;
}