relative coordinates
This commit is contained in:
parent
e09541151f
commit
ee6df270ce
@ -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<ItemStack> stacks) {
|
||||
|
Loading…
Reference in New Issue
Block a user