diff --git a/Core/src/main/java/com/plotsquared/core/util/SchematicHandler.java b/Core/src/main/java/com/plotsquared/core/util/SchematicHandler.java index ee8468267..b0e65943f 100644 --- a/Core/src/main/java/com/plotsquared/core/util/SchematicHandler.java +++ b/Core/src/main/java/com/plotsquared/core/util/SchematicHandler.java @@ -581,6 +581,10 @@ public abstract class SchematicHandler { schematic.put("BlockData", new ByteArrayTag(buffer.toByteArray())); schematic.put("BlockEntities", new ListTag(CompoundTag.class, tileEntities)); + if (biomeBuffer.size() == 0 || biomePalette.size() == 0) { + return; + } + schematic.put("BiomePaletteMax", new IntTag(biomePalette.size())); Map biomePaletteTag = new HashMap<>();