From 18005eaea949ef177edfdcbf9bd794314fd4a8ce Mon Sep 17 00:00:00 2001 From: bowser0000 Date: Wed, 8 Sep 2021 20:41:05 -0400 Subject: Fix first coord being negative in waypoint addition --- src/main/java/me/Danker/commands/CrystalHollowWaypointCommand.java | 2 +- src/main/java/me/Danker/features/CrystalHollowWaypoints.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/me') 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) { -- cgit