mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
Don't write biome data to schematics if it's not present
This commit is contained in:
parent
88775334b7
commit
87a2e81ec3
@ -581,6 +581,10 @@ public abstract class SchematicHandler {
|
|||||||
schematic.put("BlockData", new ByteArrayTag(buffer.toByteArray()));
|
schematic.put("BlockData", new ByteArrayTag(buffer.toByteArray()));
|
||||||
schematic.put("BlockEntities", new ListTag(CompoundTag.class, tileEntities));
|
schematic.put("BlockEntities", new ListTag(CompoundTag.class, tileEntities));
|
||||||
|
|
||||||
|
if (biomeBuffer.size() == 0 || biomePalette.size() == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
schematic.put("BiomePaletteMax", new IntTag(biomePalette.size()));
|
schematic.put("BiomePaletteMax", new IntTag(biomePalette.size()));
|
||||||
|
|
||||||
Map<String, Tag> biomePaletteTag = new HashMap<>();
|
Map<String, Tag> biomePaletteTag = new HashMap<>();
|
||||||
|
Loading…
Reference in New Issue
Block a user