Worlds are bigger now pt 2

- Stop clamping Y in [0, 256)
This commit is contained in:
Jozufozu 2021-12-10 12:31:57 -08:00
parent 20eb73025c
commit 43289c3579

View file

@ -389,7 +389,7 @@ public class GridAlignedBB implements ImmutableBox {
if (empty()) return; if (empty()) return;
for (int x = minX; x < maxX; x++) { for (int x = minX; x < maxX; x++) {
for (int y = Math.max(minY, 0); y < Math.min(maxY, 255); y++) { // clamp to world height limits for (int y = minY; y < maxY; y++) {
for (int z = minZ; z < maxZ; z++) { for (int z = minZ; z < maxZ; z++) {
func.consume(x, y, z); func.consume(x, y, z);
} }