Fixes #674
This commit is contained in:
parent
1186ca87df
commit
d23a4398ed
@ -97,7 +97,7 @@ public class BrushTool implements DoubleActionTraceTool, ScrollTool, MovableTool
|
|||||||
|
|
||||||
VisualMode visual = VisualMode.valueOf((String) root.getOrDefault("visual", "NONE"));
|
VisualMode visual = VisualMode.valueOf((String) root.getOrDefault("visual", "NONE"));
|
||||||
TargetMode target = TargetMode.valueOf((String) root.getOrDefault("target", "TARGET_BLOCK_RANGE"));
|
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();
|
BrushTool tool = new BrushTool();
|
||||||
tool.visualMode = visual;
|
tool.visualMode = visual;
|
||||||
|
Loading…
Reference in New Issue
Block a user