mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-28 16:06:48 +01:00
Fix SchematicWorld NPE
This commit is contained in:
parent
5bd6110d59
commit
85b3ab2025
1 changed files with 4 additions and 2 deletions
|
@ -87,8 +87,10 @@ public class SchematicWorld extends WrappedWorld {
|
||||||
BlockState blockState = getBlockState(pos);
|
BlockState blockState = getBlockState(pos);
|
||||||
if (blockState.hasTileEntity()) {
|
if (blockState.hasTileEntity()) {
|
||||||
TileEntity tileEntity = blockState.createTileEntity(this);
|
TileEntity tileEntity = blockState.createTileEntity(this);
|
||||||
tileEntity.setLocation(this, pos);
|
if (tileEntity != null) {
|
||||||
tileEntities.put(pos, tileEntity);
|
tileEntity.setLocation(this, pos);
|
||||||
|
tileEntities.put(pos, tileEntity);
|
||||||
|
}
|
||||||
return tileEntity;
|
return tileEntity;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue