mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Update Upstream
40ded93 Fix loading legacy invalid blocks
This commit is contained in:
parent
22f11abce8
commit
a183425642
@ -249,7 +249,10 @@ public class MCEditSchematicReader extends NBTSchematicReader {
|
|||||||
int index = y * width * length + z * width + x;
|
int index = y * width * length + z * width + x;
|
||||||
BlockVector3 pt = BlockVector3.at(x, y, z);
|
BlockVector3 pt = BlockVector3.at(x, y, z);
|
||||||
BaseBlock state = Optional.ofNullable(tileEntityBlocks.get(pt))
|
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 {
|
try {
|
||||||
if (state != null) {
|
if (state != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user