From a6f7055c7b7f53689625894dd7af0e3d777437cb Mon Sep 17 00:00:00 2001 From: Dark Arc Date: Tue, 6 Nov 2012 17:36:49 -0500 Subject: [PATCH] Do not allow tool bindings to the hand --- src/main/java/com/sk89q/worldedit/LocalSession.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/sk89q/worldedit/LocalSession.java b/src/main/java/com/sk89q/worldedit/LocalSession.java index 0f8a2425d..806789403 100644 --- a/src/main/java/com/sk89q/worldedit/LocalSession.java +++ b/src/main/java/com/sk89q/worldedit/LocalSession.java @@ -478,6 +478,8 @@ public class LocalSession { public void setTool(int item, Tool tool) throws InvalidToolBindException { if (item > 0 && item < 255) { throw new InvalidToolBindException(item, "Blocks can't be used"); + } else if (item == 0) { + throw new InvalidToolBindException(item, "Your hand can't be used"); } else if (item == config.wandItem) { throw new InvalidToolBindException(item, "Already used for the wand"); } else if (item == config.navigationWand) {