geforkt von Mirrors/FastAsyncWorldEdit
Update upstream
7e61ff1 Work around invalid legacy values in schematics (2171)
Dieser Commit ist enthalten in:
Ursprung
a51863c6f0
Commit
aa216a990a
@ -484,7 +484,12 @@ public class MCEditSchematicReader extends NBTSchematicReader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private BlockState getBlockState(int id, int data) {
|
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
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren