Add a nullcheck that was crashing someone.

This commit is contained in:
Ben Spiers 2013-08-01 23:15:02 +01:00
parent 04e7fdcf23
commit 0d99b90922

View file

@ -108,7 +108,10 @@ public class TileEntityUniversalCable extends TileEntity implements IUniversalCa
@Override @Override
public void removeFromNetwork() public void removeFromNetwork()
{ {
energyNetwork.removeCable(this); if(energyNetwork != null)
{
energyNetwork.removeCable(this);
}
} }
@Override @Override