mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Update upstream
7e61ff1 Work around invalid legacy values in schematics (2171)
This commit is contained in:
parent
a51863c6f0
commit
aa216a990a
@ -484,7 +484,12 @@ public class MCEditSchematicReader extends NBTSchematicReader {
|
||||
}
|
||||
|
||||
private BlockState getBlockState(int id, int data) {
|
||||
return LegacyMapper.getInstance().getBlockFromLegacy(id, data);
|
||||
BlockState foundBlock = LegacyMapper.getInstance().getBlockFromLegacy(id, data);
|
||||
if (foundBlock == null && data != 0) {
|
||||
// Some schematics contain invalid data values, so try without the data value
|
||||
return LegacyMapper.getInstance().getBlockFromLegacy(id, 0);
|
||||
}
|
||||
return foundBlock;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user