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;