From c10520c0100db116773671b102e9b8efc226ded1 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sun, 5 Mar 2017 15:34:26 +1100 Subject: [PATCH] Clear visualizer on item change --- build.gradle | 2 +- .../main/java/com/sk89q/worldedit/command/tool/BrushTool.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 60a9bb97..83e21762 100644 --- a/build.gradle +++ b/build.gradle @@ -28,7 +28,7 @@ ext { date = git.head().date.format("yy.MM.dd") revision = "-${git.head().abbreviatedId}" parents = git.head().parentIds; - index = -78; // Offset to mach CI + index = -79; // Offset to mach CI int major, minor, patch; major = minor = patch = 0; for (;parents != null && !parents.isEmpty();index++) { diff --git a/core/src/main/java/com/sk89q/worldedit/command/tool/BrushTool.java b/core/src/main/java/com/sk89q/worldedit/command/tool/BrushTool.java index 4a851987..cabc0a92 100644 --- a/core/src/main/java/com/sk89q/worldedit/command/tool/BrushTool.java +++ b/core/src/main/java/com/sk89q/worldedit/command/tool/BrushTool.java @@ -362,6 +362,8 @@ public class BrushTool implements DoubleActionTraceTool, ScrollTool, MovableTool } } return true; + } else if (visualMode != VisualMode.NONE) { + clear(player); } return false; }