This commit is contained in:
Jesse Boyd 2017-08-06 18:36:35 +10:00
parent 1186ca87df
commit d23a4398ed
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -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;