From 2de45458d43c560781f0773c05460e1f4ac796b4 Mon Sep 17 00:00:00 2001 From: Aurora Date: Mon, 25 May 2020 15:24:47 +0200 Subject: [PATCH] Compare using BlockType, not Block for AreaPickaxe, fixes #436 --- .../main/java/com/sk89q/worldedit/command/tool/AreaPickaxe.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/tool/AreaPickaxe.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/tool/AreaPickaxe.java index 5c8339d48..2ec6d4546 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/tool/AreaPickaxe.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/tool/AreaPickaxe.java @@ -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; }