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 efdf79846..d2e0384a1 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 @@ -86,8 +86,9 @@ public class HeightmapProcessor implements IBatchProcessor { } else if (getSection == null) { getSection = get.load(layer); // skip empty layer - if (Arrays.equals(getSection, FaweCache.INSTANCE.EMPTY_CHAR_4096) - || Arrays.equals(getSection, AIR_LAYER)) { + if (getSection == null || + Arrays.equals(getSection, FaweCache.INSTANCE.EMPTY_CHAR_4096) || + Arrays.equals(getSection, AIR_LAYER)) { hasSectionGet = false; if (!hasSectionSet) { continue layer;