Skip to content

Commit

Permalink
fix max section bound for ray occlusion tree after Minecraft changed …
Browse files Browse the repository at this point in the history
…it in 1.21.2

Signed-off-by: douira <[email protected]>
  • Loading branch information
douira committed Jan 13, 2025
1 parent 053c5fc commit 6ef53ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private int blockHasObstruction(int x, int y, int z) {
y >>= 4;
z >>= 4;

if (y < this.minSection || y >= this.maxSection) {
if (y < this.minSection || y > this.maxSection) {
return Tree.OUT_OF_BOUNDS;
}

Expand Down

0 comments on commit 6ef53ee

Please sign in to comment.