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

Commit

Permalink
change rounding mode
Browse files Browse the repository at this point in the history
more accurate to the minecraft f3 screen
fixes #55
  • Loading branch information
Fury-101 authored Oct 17, 2022
1 parent 50a084a commit cbf6275
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 cbf6275

Please sign in to comment.