diff --git a/src/main/java/com/jozufozu/flywheel/light/GridAlignedBB.java b/src/main/java/com/jozufozu/flywheel/light/GridAlignedBB.java index d84dd13a4..e96f9fbc7 100644 --- a/src/main/java/com/jozufozu/flywheel/light/GridAlignedBB.java +++ b/src/main/java/com/jozufozu/flywheel/light/GridAlignedBB.java @@ -389,7 +389,7 @@ public class GridAlignedBB implements ImmutableBox { if (empty()) return; 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++) { func.consume(x, y, z); }