From 1e21124acd278beb2ac94e8ba6e0d54c25ffba75 Mon Sep 17 00:00:00 2001 From: sk89q Date: Tue, 9 Nov 2010 01:48:22 -0800 Subject: [PATCH] Fixed the super pickaxe not working with bedrock and the recursive super pickaxe not working properly. --- src/WorldEditListener.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/WorldEditListener.java b/src/WorldEditListener.java index 76558f5ae..a7f4b1209 100644 --- a/src/WorldEditListener.java +++ b/src/WorldEditListener.java @@ -1566,7 +1566,7 @@ public class WorldEditListener extends PluginListener { WorldEditSession.SuperPickaxeMode.SINGLE) { Vector pos = new Vector(blockClicked.getX(), blockClicked.getY(), blockClicked.getZ()); - if (ServerInterface.getBlockType(pos) == 7 && canBedrock) { + if (ServerInterface.getBlockType(pos) == 7 && !canBedrock) { return true; } else if (ServerInterface.getBlockType(pos) == 46) { return false; @@ -1647,6 +1647,8 @@ public class WorldEditListener extends PluginListener { if (ServerInterface.getBlockType(pos) == initialType) { ServerInterface.setBlockType(pos, 0); + } else { + return; } recursiveSuperPickaxe(pos.add(1, 0, 0).toBlockVector(), origin, size,