Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
[skip ci] Merge pull request #96 from Fury-101/patch-3
Browse files Browse the repository at this point in the history
change rounding mode
  • Loading branch information
DarkKronicle authored Oct 31, 2022
2 parents 9c68765 + cbf6275 commit 703b87a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 703b87a

Please sign in to comment.