From f04e891e0c5d03b7bf8fb9a4280d2b713fc2f0db Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Wed, 10 Nov 2021 19:45:49 +0000 Subject: [PATCH] Allow schematics with empty, but present, biome data --- .../core/extent/clipboard/io/FastSchematicReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/io/FastSchematicReader.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/io/FastSchematicReader.java index 9b755ee3d..6d3a61359 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/io/FastSchematicReader.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/io/FastSchematicReader.java @@ -312,7 +312,7 @@ public class FastSchematicReader extends NBTSchematicReader { } } } - if (biomesOut != null && biomesOut.getSize() != 0) { + if (biomesOut != null && biomesOut.getSize() != 0 && biomePalette != null && biomePalette.length > 0) { try (FaweInputStream fis = new FaweInputStream(new LZ4BlockInputStream(new FastByteArraysInputStream(biomesOut.toByteArrays())))) { for (int z = 0; z < length; z++) { for (int x = 0; x < width; x++) {