From 74240377954caee13c26b9999f60d6570d0263a7 Mon Sep 17 00:00:00 2001 From: Intelli Date: Thu, 4 Jan 2024 20:09:38 -0700 Subject: [PATCH] Fixed teleport shortcut not properly handling extremely large numbers --- src/main/java/net/coreprotect/utility/Util.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/coreprotect/utility/Util.java b/src/main/java/net/coreprotect/utility/Util.java index e58724d8..03c5d1b2 100755 --- a/src/main/java/net/coreprotect/utility/Util.java +++ b/src/main/java/net/coreprotect/utility/Util.java @@ -126,7 +126,7 @@ public static String getCoordinates(String command, int worldId, int x, int y, i } // command - message.append("|/" + command + " teleport wid:" + worldId + " " + (x + 0.50) + " " + y + " " + (z + 0.50) + "|"); + message.append("|/" + command + " teleport wid:" + worldId + " " + String.format("%.2f", (x + 0.50)) + " " + y + " " + String.format("%.2f", (z + 0.50)) + "|"); // chat output message.append(Color.GREY + (italic ? Color.ITALIC : "") + "(x" + x + "/y" + y + "/z" + z + worldDisplay.toString() + ")");