Skip to content

Commit 089da7a

Browse files
committed
fix: only formatting to second decimal place
1 parent ed9fa73 commit 089da7a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/conaxgames/libraries/util/CustomLocation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ public static String locationToString(CustomLocation loc) {
102102
}
103103

104104
StringBuilder builder = new StringBuilder();
105-
builder.append(String.format("%.6f, %.6f, %.6f", loc.getX(), loc.getY(), loc.getZ()));
105+
builder.append(String.format("%.2f, %.2f, %.2f", loc.getX(), loc.getY(), loc.getZ()));
106106

107107
if (loc.getYaw() != 0.0f || loc.getPitch() != 0.0f) {
108-
builder.append(String.format(", %.6f, %.6f", loc.getYaw(), loc.getPitch()));
108+
builder.append(String.format(", %.2f, %.2f", loc.getYaw(), loc.getPitch()));
109109
}
110110

111111
if (!loc.getWorld().equals("world")) {

0 commit comments

Comments
 (0)