diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SchematicReader.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SchematicReader.java index aabb2775f..358edc19c 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SchematicReader.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SchematicReader.java @@ -163,20 +163,6 @@ public class SchematicReader implements ClipboardReader { } }); - StreamDelegate biomesDelegate = schematic.add("Biomes"); - StreamDelegate aweBiomesDelegate = schematic.add("AWEBiomes"); - - InfoReader biomesInfo = (l, t) -> { - biomesOut = new FastByteArrayOutputStream(); - biomes = new FaweOutputStream(new LZ4BlockOutputStream(biomesOut)); - }; - biomesDelegate.withInfo(biomesInfo); - aweBiomesDelegate.withInfo(biomesInfo); - - IntValueReader biomeReader = (index, value) -> biomes.write(value); - biomesDelegate.withInt(biomeReader); - - StreamDelegate tilesDelegate = schematic.add("TileEntities"); tilesDelegate.withInfo((length, type) -> tiles = new ArrayList<>(length)); tilesDelegate.withElem((ValueReader>) (index, tile) -> tiles.add(tile)); @@ -298,26 +284,6 @@ public class SchematicReader implements ClipboardReader { } } - if (biomes != null) { - try (InputStream biomesIn = new LZ4BlockInputStream(new FastByteArraysInputStream(biomesOut.toByteArrays()))) { - if (clipboard instanceof LinearClipboard) { - LinearClipboard linear = (LinearClipboard) clipboard; - int volume = width * length; - for (int index = 0; index < volume; index++) { - BiomeType biome = BiomeTypes.getLegacy(biomesIn.read()); - if (biome != null) linear.setBiome(index, biome); - } - } else { - for (int z = 0; z < length; z++) { - for (int x = 0; x < width; x++) { - BiomeType biome = BiomeTypes.getLegacy(biomesIn.read()); - if (biome != null) clipboard.setBiome(x, 0, z, biome); - } - } - } - } - } - // tiles if (tiles != null && !tiles.isEmpty()) { outer: