3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-05 02:50:05 +01:00

Update Upstream

40ded93 Fix loading legacy invalid blocks
Dieser Commit ist enthalten in:
NotMyFault 2021-07-06 13:13:54 +02:00
Ursprung 22f11abce8
Commit a183425642
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 158F5701A6AAD00C

Datei anzeigen

@ -249,7 +249,10 @@ public class MCEditSchematicReader extends NBTSchematicReader {
int index = y * width * length + z * width + x;
BlockVector3 pt = BlockVector3.at(x, y, z);
BaseBlock state = Optional.ofNullable(tileEntityBlocks.get(pt))
.orElseGet(() -> getBlockState(blocks[index], blockData[index]).toBaseBlock());
.orElseGet(() -> {
BlockState blockState = getBlockState(blocks[index], blockData[index]);
return blockState == null ? null : blockState.toBaseBlock();
});
try {
if (state != null) {