From cbf627519c46fcbe0557f4e6fff3c7393fc8de4f Mon Sep 17 00:00:00 2001 From: Fury-101 <73406313+Fury-101@users.noreply.github.com> Date: Mon, 17 Oct 2022 09:18:35 -0700 Subject: [PATCH] change rounding mode more accurate to the minecraft f3 screen fixes https://github.com/DarkKronicle/KronHUD/issues/55 --- .../java/io/github/darkkronicle/kronhud/gui/hud/CoordsHud.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/darkkronicle/kronhud/gui/hud/CoordsHud.java b/src/main/java/io/github/darkkronicle/kronhud/gui/hud/CoordsHud.java index aa4132c..332f1e7 100644 --- a/src/main/java/io/github/darkkronicle/kronhud/gui/hud/CoordsHud.java +++ b/src/main/java/io/github/darkkronicle/kronhud/gui/hud/CoordsHud.java @@ -90,7 +90,7 @@ public void renderComponent(MatrixStack matrices, float delta) { format.append("0".repeat(Math.max(0, decimalPlaces.getValue()))); } DecimalFormat df = new DecimalFormat(format.toString()); - df.setRoundingMode(RoundingMode.CEILING); + df.setRoundingMode(RoundingMode.FLOOR); double x = client.player.getX(); double y = client.player.getY(); double z = client.player.getZ();