From a923c112eef74ef80e3dcc2547d2b0dbb12dc019 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sat, 11 Sep 2021 14:25:47 +0100 Subject: [PATCH] Actually do what I said for min/max Y in HeightmapProcessor --- .../core/extent/processor/heightmap/HeightmapProcessor.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/processor/heightmap/HeightmapProcessor.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/processor/heightmap/HeightmapProcessor.java index 845a7e155..1119ed431 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/processor/heightmap/HeightmapProcessor.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/processor/heightmap/HeightmapProcessor.java @@ -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)) {