Ignore bad schematic tileentity coordinates
Dieser Commit ist enthalten in:
Ursprung
aaed31f072
Commit
6e616c6366
@ -239,8 +239,8 @@ class Schematic_14 {
|
|||||||
|
|
||||||
int index = y * width * length + z * width + x;
|
int index = y * width * length + z * width + x;
|
||||||
|
|
||||||
|
try{
|
||||||
BlockState block = getBlockState(blocks[index], blockData[index]);
|
BlockState block = getBlockState(blocks[index], blockData[index]);
|
||||||
System.out.println(block.getBlockType().getId());
|
|
||||||
BlockState newBlock = block;
|
BlockState newBlock = block;
|
||||||
if (newBlock != null) {
|
if (newBlock != null) {
|
||||||
for (NBTCompatibilityHandler handler : COMPATIBILITY_HANDLERS) {
|
for (NBTCompatibilityHandler handler : COMPATIBILITY_HANDLERS) {
|
||||||
@ -267,6 +267,9 @@ class Schematic_14 {
|
|||||||
tileEntitiesMap.put(vec, t.getValue());
|
tileEntitiesMap.put(vec, t.getValue());
|
||||||
}
|
}
|
||||||
blockStates.put(vec, newBlock);
|
blockStates.put(vec, newBlock);
|
||||||
|
}catch(ArrayIndexOutOfBoundsException e){
|
||||||
|
//ignored
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BlockArrayClipboard clipboard = new BlockArrayClipboard(region);
|
BlockArrayClipboard clipboard = new BlockArrayClipboard(region);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren