Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-09 13:00:05 +01:00
fix NPE when reading sponge schematics with tile entities or entities
Dieser Commit ist enthalten in:
Ursprung
88b665f141
Commit
e724b1f1cd
@ -210,6 +210,7 @@ public class SpongeSchematicReader extends NBTSchematicReader {
|
||||
});
|
||||
streamer.readFully();
|
||||
if (fc == null) setupClipboard(length * width * height, uuid);
|
||||
else fc.setDimensions(new Vector(width, height, length));
|
||||
Vector origin = min;
|
||||
CuboidRegion region;
|
||||
if (offsetX != Integer.MIN_VALUE && offsetY != Integer.MIN_VALUE && offsetZ != Integer.MIN_VALUE) {
|
||||
@ -242,7 +243,6 @@ public class SpongeSchematicReader extends NBTSchematicReader {
|
||||
}
|
||||
}
|
||||
}
|
||||
fc.setDimensions(new Vector(width, height, length));
|
||||
clipboard.init(region, fc);
|
||||
clipboard.setOrigin(origin);
|
||||
return clipboard;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren