From ee6df270ce97653232d7b72021fd80cc472048b5 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Wed, 13 Mar 2019 08:50:04 -0700 Subject: [PATCH] relative coordinates --- src/main/java/baritone/utils/ExampleBaritoneControl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {