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
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue