Skip to content

Commit 0ae10a8

Browse files
authored
Merge pull request #8 from dsnsgithub/main
Migrate to 1.21-1.21.5
2 parents f199dca + ddb6c4c commit 0ae10a8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/dsns/betterhud/mods/Coordinates.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ public CustomText onStartTick(MinecraftClient client) {
7070
getModSettings()
7171
);
7272
} else {
73-
int x = (int) player.getX();
74-
int y = (int) player.getY();
75-
int z = (int) player.getZ();
73+
int x = player.getBlockX();
74+
int y = player.getBlockY();
75+
int z = player.getBlockZ();
7676

7777
return new CustomText(x + ", " + y + ", " + z, getModSettings());
7878
}

0 commit comments

Comments
 (0)