Added null check
This commit is contained in:
parent
61306fd664
commit
9b7abb8d96
1 changed files with 4 additions and 1 deletions
|
@ -487,7 +487,10 @@ public class BlockGenerator extends BlockContainer implements ISpecialBounds
|
||||||
|
|
||||||
if(!world.isRemote)
|
if(!world.isRemote)
|
||||||
{
|
{
|
||||||
((TileEntityElectricBlock)tileEntity).register();
|
if(tileEntity != null)
|
||||||
|
{
|
||||||
|
((TileEntityElectricBlock)tileEntity).register();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue