From ffa9eace6f4954f6566416dbd055c5e2fa46a079 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sat, 8 Sep 2018 03:17:27 +1000 Subject: [PATCH] Fix `/none` --- .../boydti/fawe/bukkit/listener/AsyncTabCompleteListener.java | 2 +- .../src/main/java/com/sk89q/worldedit/LocalSession.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/listener/AsyncTabCompleteListener.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/listener/AsyncTabCompleteListener.java index d0da7104a..2334edefb 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/listener/AsyncTabCompleteListener.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/listener/AsyncTabCompleteListener.java @@ -23,7 +23,7 @@ public class AsyncTabCompleteListener extends ATabCompleteListener { List result = this.onTab(event.getBuffer(), event.getSender()); if (result != null) { event.setCompletions(result); - event.setHandled(true); // Doesn't work + event.setHandled(true); } } } 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 4a5255207..adc5b2fb6 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/LocalSession.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/LocalSession.java @@ -1036,8 +1036,8 @@ public class LocalSession implements TextureHolder { Tool previous; if (player != null && (tool instanceof BrushTool || tool == null) && Settings.IMP.EXPERIMENTAL.PERSISTENT_BRUSHES && item.getNativeItem() != null) { previous = BrushCache.getCachedTool(item); + BrushCache.setTool(item, (BrushTool) tool); if (tool != null) { - BrushCache.setTool(item, (BrushTool) tool); ((BrushTool) tool).setHolder(item); } } else {