Skip to content
This repository was archived by the owner on Mar 8, 2025. It is now read-only.

Commit 703b87a

Browse files
authored
[skip ci] Merge pull request #96 from Fury-101/patch-3
change rounding mode
2 parents 9c68765 + cbf6275 commit 703b87a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/github/darkkronicle/kronhud/gui/hud/CoordsHud.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public void renderComponent(MatrixStack matrices, float delta) {
9090
format.append("0".repeat(Math.max(0, decimalPlaces.getValue())));
9191
}
9292
DecimalFormat df = new DecimalFormat(format.toString());
93-
df.setRoundingMode(RoundingMode.CEILING);
93+
df.setRoundingMode(RoundingMode.FLOOR);
9494
double x = client.player.getX();
9595
double y = client.player.getY();
9696
double z = client.player.getZ();

0 commit comments

Comments
 (0)