3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-09-06 16:12:51 +02:00

Allow schematics with empty, but present, biome data

Dieser Commit ist enthalten in:
dordsor21 2021-11-10 19:45:49 +00:00
Ursprung 4272f96ade
Commit f04e891e0c
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -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++) {