fix: fix debug info
@@ -58,7 +58,7 @@ public class HUDGameDebug extends VBox implements GuiTickable {
playerPosition.text().setValue(format("Player Position: %.2f, %.2f, %.2f", player.getPosition().x, player.getPosition().y, player.getPosition().z));
playerMotion.text().setValue(format("Player Motion: %.2f, %.2f, %.2f", player.getMotion().x, player.getMotion().y, player.getMotion().z));
playerDirection.text().setValue(format("Player Direction (yaw, pitch, roll): %.2f, %.2f, %.2f (%s)", player.getRotation().x, player.getRotation().y, player.getRotation().z, getDirection(player.getRotation().x)));
- playerChunkPos.text().setValue(format("Player At Chunk: %d, %d, %d", (int) player.getPosition().x >> CHUNK_X_BITS, (int) player.getPosition().y >> CHUNK_Y_BITS, (int) player.getPosition().z >> CHUNK_Z_BITS));
+ playerChunkPos.text().setValue(format("Player At Chunk: %d, %d, %d", (int) Math.floor(player.getPosition().x) >> CHUNK_X_BITS, (int) Math.floor(player.getPosition().y) >> CHUNK_Y_BITS, (int) Math.floor(player.getPosition().z) >> CHUNK_Z_BITS));
Runtime runtime = Runtime.getRuntime();
long totalMemory = runtime.totalMemory();
long maxMemory = runtime.maxMemory();
