Skip to content

Commit

Permalink
Support down to y = -64 for 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
LadyCailin authored Dec 18, 2021
1 parent 1521e1d commit c495c4a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public int getBlockZ() {
* @TODO 1.17 this class will need to account for negative Y coordinates.
*/
public boolean exists(World world) {
return y >= 0 && y * 64 < world.getMaxHeight();
return y >= -64 && y * 64 < world.getMaxHeight();
}

/**
Expand Down Expand Up @@ -138,4 +138,4 @@ public static ChunkLoc fromLocation(double x, double y, double z) {
return new ChunkLoc(cx, cy, cz);
}

}
}

0 comments on commit c495c4a

Please sign in to comment.