Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-09-07 00:22:51 +02:00
Skip corrupt tile entities in legacy schematics
Dieser Commit ist enthalten in:
Ursprung
6301a7adb9
Commit
7d9abc9273
@ -203,6 +203,13 @@ public class MCEditSchematicReader extends NBTSchematicReader {
|
|||||||
int z = t.getInt("z");
|
int z = t.getInt("z");
|
||||||
int index = y * width * length + z * width + x;
|
int index = y * width * length + z * width + x;
|
||||||
|
|
||||||
|
//FAWE start - tile entity safety - perhaps caused by the old issue with tile entities created in the wrong
|
||||||
|
// position in schematics?
|
||||||
|
if (index >= blocks.length) {
|
||||||
|
LOGGER.warn("Skipping corrupt tile entity at position " + x + " " + y + " " + z + " in schematic.");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
BlockState block = getBlockState(blocks[index], blockData[index]);
|
BlockState block = getBlockState(blocks[index], blockData[index]);
|
||||||
BlockState newBlock = block;
|
BlockState newBlock = block;
|
||||||
if (newBlock != null) {
|
if (newBlock != null) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren