Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-26 02:50:06 +01:00
Update Upstream
40ded93 Fix loading legacy invalid blocks
Dieser Commit ist enthalten in:
Ursprung
22f11abce8
Commit
a183425642
@ -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) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren