We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3494fc1 commit 7def372Copy full SHA for 7def372
src/main/java/com/sk89q/commandbook/util/InputUtil.java
@@ -433,8 +433,10 @@ public static class LocationParser {
433
*/
434
public static double parseCoordinateValue(String string) {
435
string = string.replace("~", "");
436
+ int scalingFactor = string.startsWith("!") ? 16 : 1;
437
+ string = string.replace("!", "");
438
string = string.replace(",", "");
- return Double.parseDouble(string);
439
+ return Double.parseDouble(string) * scalingFactor;
440
}
441
442
/**
0 commit comments