Actually do what I said for min/max Y in HeightmapProcessor

This commit is contained in:
dordsor21 2021-09-11 14:25:47 +01:00
parent 2c0c57ec4f
commit a923c112ee
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -55,8 +55,7 @@ public class HeightmapProcessor implements IBatchProcessor {
int skip = 0;
int allSkipped = (1 << TYPES.length) - 1; // lowest types.length bits are set
layer:
//int layer = maxY >> 4; layer >= minY >> 4; layer--
for (int layer = set.getMaxSectionPosition(); layer >= set.getMinSectionPosition() >> 4; layer--) {
for (int layer = maxY >> 4; layer >= minY >> 4; layer--) {
boolean hasSectionSet = set.hasSection(layer);
boolean hasSectionGet = get.hasSection(layer);
if (!(hasSectionSet || hasSectionGet)) {