diff options
author | bowser0000 <bowser0000@gmail.com> | 2021-09-08 20:41:05 -0400 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2021-09-08 20:41:05 -0400 |
commit | 18005eaea949ef177edfdcbf9bd794314fd4a8ce (patch) | |
tree | e180b85f7accd1781086c7a22326e85ca89622f9 /src/main/java/me/Danker | |
parent | 7b78e67b434e427b696a43a95b9bb6705da41ad8 (diff) | |
download | SkyblockMod-18005eaea949ef177edfdcbf9bd794314fd4a8ce.tar.gz SkyblockMod-18005eaea949ef177edfdcbf9bd794314fd4a8ce.tar.bz2 SkyblockMod-18005eaea949ef177edfdcbf9bd794314fd4a8ce.zip |
Fix first coord being negative in waypoint addition
Diffstat (limited to 'src/main/java/me/Danker')
-rw-r--r-- | src/main/java/me/Danker/commands/CrystalHollowWaypointCommand.java | 2 | ||||
-rw-r--r-- | src/main/java/me/Danker/features/CrystalHollowWaypoints.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/me/Danker/commands/CrystalHollowWaypointCommand.java b/src/main/java/me/Danker/commands/CrystalHollowWaypointCommand.java index c545447..1aacf50 100644 --- a/src/main/java/me/Danker/commands/CrystalHollowWaypointCommand.java +++ b/src/main/java/me/Danker/commands/CrystalHollowWaypointCommand.java @@ -35,7 +35,7 @@ public class CrystalHollowWaypointCommand extends CommandBase { String[] waypoints = String.join(" ", arg1).split("\\\\n"); for (String waypoint : waypoints) { - String[] parts = waypoint.split("@"); + String[] parts = waypoint.split("@-"); String[] coords = parts[1].split(","); String location = parts[0]; diff --git a/src/main/java/me/Danker/features/CrystalHollowWaypoints.java b/src/main/java/me/Danker/features/CrystalHollowWaypoints.java index fdd49f2..5b8d665 100644 --- a/src/main/java/me/Danker/features/CrystalHollowWaypoints.java +++ b/src/main/java/me/Danker/features/CrystalHollowWaypoints.java @@ -174,7 +174,7 @@ public class CrystalHollowWaypoints { } public String getFormattedWaypoint() { - return location + "@" + pos.getX() + "," + pos.getY() + "," + pos.getZ(); + return location + "@-" + pos.getX() + "," + pos.getY() + "," + pos.getZ(); } public String getDistance(EntityPlayer player) { |