Added null check

This commit is contained in:
Aidan C. Brady 2014-01-17 11:18:04 -05:00
parent 61306fd664
commit 9b7abb8d96

View file

@ -487,7 +487,10 @@ public class BlockGenerator extends BlockContainer implements ISpecialBounds
if(!world.isRemote)
{
((TileEntityElectricBlock)tileEntity).register();
if(tileEntity != null)
{
((TileEntityElectricBlock)tileEntity).register();
}
}
}