Fixed teleport shortcut not properly handling extremely large numbers

This commit is contained in:
Intelli 2024-01-04 20:09:38 -07:00
parent ba6a55fff6
commit 7424037795

View File

@ -126,7 +126,7 @@ public class Util extends Queue {
} }
// command // 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 // chat output
message.append(Color.GREY + (italic ? Color.ITALIC : "") + "(x" + x + "/y" + y + "/z" + z + worldDisplay.toString() + ")"); message.append(Color.GREY + (italic ? Color.ITALIC : "") + "(x" + x + "/y" + y + "/z" + z + worldDisplay.toString() + ")");