mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-14 22:43:56 +01:00
Fix SchematicWorld NPE
This commit is contained in:
parent
5bd6110d59
commit
85b3ab2025
@ -87,8 +87,10 @@ public class SchematicWorld extends WrappedWorld {
|
||||
BlockState blockState = getBlockState(pos);
|
||||
if (blockState.hasTileEntity()) {
|
||||
TileEntity tileEntity = blockState.createTileEntity(this);
|
||||
if (tileEntity != null) {
|
||||
tileEntity.setLocation(this, pos);
|
||||
tileEntities.put(pos, tileEntity);
|
||||
}
|
||||
return tileEntity;
|
||||
}
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user