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

@ -107,9 +107,12 @@ public class TileEntityUniversalCable extends TileEntity implements IUniversalCa
@Override
public void removeFromNetwork()
{
if(energyNetwork != null)
{
energyNetwork.removeCable(this);
}
}
@Override
public void refreshNetwork()