Fixes #261 set bounds

This commit is contained in:
Jesse Boyd 2019-11-24 01:14:12 +00:00
parent 1f19b92b0b
commit 63839bfdf6
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -700,11 +700,11 @@ public class CuboidRegion extends AbstractRegion implements FlatRegion {
minSection++;
}
if (yEnd != 15) {
filter(chunk, filter, block, get, set, minSection, localMinX, 0, localMinZ, localMaxX, 15, localMaxZ, full);
filter(chunk, filter, block, get, set, minSection, localMinX, 0, localMinZ, localMaxX, yEnd, localMaxZ, full);
maxSection--;
}
for (int layer = minSection; layer <= maxSection; layer++) {
filter(chunk, filter, block, get, set, layer, localMinX, yStart, localMinZ, localMaxX, yEnd, localMaxZ, full);
filter(chunk, filter, block, get, set, layer, localMinX, 0, localMinZ, localMaxX, 15, localMaxZ, full);
}
}