Add a nullcheck that was crashing someone.
This commit is contained in:
parent
04e7fdcf23
commit
0d99b90922
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue