From f726c9afc4de8bc9212de92d37f0b87b0499bd4e Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 11 Apr 2019 11:28:06 +1000 Subject: [PATCH] fix `//none` for tools --- .../src/main/java/com/sk89q/worldedit/LocalSession.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/LocalSession.java b/worldedit-core/src/main/java/com/sk89q/worldedit/LocalSession.java index c4a98e797..3517bb2f7 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/LocalSession.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/LocalSession.java @@ -1073,6 +1073,8 @@ public class LocalSession implements TextureHolder { BrushCache.setTool(item, (BrushTool) tool); if (tool != null) { ((BrushTool) tool).setHolder(item); + } else { + this.tools[type.getInternalId()] = null; } } else { previous = this.tools[type.getInternalId()];