From d23a4398ed617df31d3224ee6fa9fc13865e3c97 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sun, 6 Aug 2017 18:36:35 +1000 Subject: [PATCH] Fixes #674 --- .../main/java/com/sk89q/worldedit/command/tool/BrushTool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 76eccfc6..ab3f245c 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 @@ -97,7 +97,7 @@ public class BrushTool implements DoubleActionTraceTool, ScrollTool, MovableTool VisualMode visual = VisualMode.valueOf((String) root.getOrDefault("visual", "NONE")); TargetMode target = TargetMode.valueOf((String) root.getOrDefault("target", "TARGET_BLOCK_RANGE")); - int range = (int) (double) root.getOrDefault("range", -1); + int range = ((Number) root.getOrDefault("range", -1)).intValue(); BrushTool tool = new BrushTool(); tool.visualMode = visual;