diff --git a/src/main/java/baritone/utils/ExampleBaritoneControl.java b/src/main/java/baritone/utils/ExampleBaritoneControl.java index fcd07101..04d1606b 100644 --- a/src/main/java/baritone/utils/ExampleBaritoneControl.java +++ b/src/main/java/baritone/utils/ExampleBaritoneControl.java @@ -634,7 +634,7 @@ public class ExampleBaritoneControl extends Behavior implements Helper { } private int parseOrDefault(String str, int i) { - return str.equals("~") ? i : Integer.parseInt(str); + return str.equals("~") ? i : str.startsWith("~") ? Integer.parseInt(str.substring(1)) + i : Integer.parseInt(str); } private void log(List stacks) {