diff --git a/common/src/main/java/net/caffeinemc/mods/sodium/client/render/chunk/lists/VisibleChunkCollector.java b/common/src/main/java/net/caffeinemc/mods/sodium/client/render/chunk/lists/VisibleChunkCollector.java index 72cdbc5df4..035e1b69c4 100644 --- a/common/src/main/java/net/caffeinemc/mods/sodium/client/render/chunk/lists/VisibleChunkCollector.java +++ b/common/src/main/java/net/caffeinemc/mods/sodium/client/render/chunk/lists/VisibleChunkCollector.java @@ -73,9 +73,9 @@ public SortedRenderLists createRenderLists(Viewport viewport) { var items = new int[size]; for (var i = 0; i < size; i++) { var region = this.sortedRenderLists.get(i).getRegion(); - var x = Math.abs(region.getRawX() - cameraX); - var y = Math.abs(region.getRawY() - cameraY); - var z = Math.abs(region.getRawZ() - cameraZ); + var x = Math.abs(region.getX() - cameraX); + var y = Math.abs(region.getY() - cameraY); + var z = Math.abs(region.getZ() - cameraZ); items[i] = (x + y + z) << 16 | i; } diff --git a/common/src/main/java/net/caffeinemc/mods/sodium/client/render/chunk/region/RenderRegion.java b/common/src/main/java/net/caffeinemc/mods/sodium/client/render/chunk/region/RenderRegion.java index a95d1afb55..29ca64b226 100644 --- a/common/src/main/java/net/caffeinemc/mods/sodium/client/render/chunk/region/RenderRegion.java +++ b/common/src/main/java/net/caffeinemc/mods/sodium/client/render/chunk/region/RenderRegion.java @@ -64,15 +64,15 @@ public static long key(int x, int y, int z) { return SectionPos.asLong(x, y, z); } - public int getRawX() { + public int getX() { return this.x; } - public int getRawY() { + public int getY() { return this.y; } - public int getRawZ() { + public int getZ() { return this.z; }