Skip to content

Commit

Permalink
rename region getter methods
Browse files Browse the repository at this point in the history
  • Loading branch information
douira committed Sep 29, 2024
1 parent 70a322b commit 67ca404
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 67ca404

Please sign in to comment.