SteamWar/SpigotCore
Archiviert
13
0

Ignore bad schematic tileentity coordinates

Dieser Commit ist enthalten in:
Lixfel 2020-04-04 13:20:15 +02:00
Ursprung aaed31f072
Commit 6e616c6366

Datei anzeigen

@ -239,8 +239,8 @@ class Schematic_14 {
int index = y * width * length + z * width + x;
try{
BlockState block = getBlockState(blocks[index], blockData[index]);
System.out.println(block.getBlockType().getId());
BlockState newBlock = block;
if (newBlock != null) {
for (NBTCompatibilityHandler handler : COMPATIBILITY_HANDLERS) {
@ -267,6 +267,9 @@ class Schematic_14 {
tileEntitiesMap.put(vec, t.getValue());
}
blockStates.put(vec, newBlock);
}catch(ArrayIndexOutOfBoundsException e){
//ignored
}
}
BlockArrayClipboard clipboard = new BlockArrayClipboard(region);