Skip to content

Commit

Permalink
relative coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
leijurv committed Mar 13, 2019
1 parent e095411 commit ee6df27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/baritone/utils/ExampleBaritoneControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ public boolean isInGoal(int x, int y, int z) {
}

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<ItemStack> stacks) {
Expand Down

0 comments on commit ee6df27

Please sign in to comment.