From 0d99b9092241cf46a1b9449826cba42c6b5b6acf Mon Sep 17 00:00:00 2001 From: Ben Spiers Date: Thu, 1 Aug 2013 23:15:02 +0100 Subject: [PATCH] Add a nullcheck that was crashing someone. --- common/mekanism/common/TileEntityUniversalCable.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/mekanism/common/TileEntityUniversalCable.java b/common/mekanism/common/TileEntityUniversalCable.java index 8d06122c1..1bc109120 100644 --- a/common/mekanism/common/TileEntityUniversalCable.java +++ b/common/mekanism/common/TileEntityUniversalCable.java @@ -108,7 +108,10 @@ public class TileEntityUniversalCable extends TileEntity implements IUniversalCa @Override public void removeFromNetwork() { - energyNetwork.removeCable(this); + if(energyNetwork != null) + { + energyNetwork.removeCable(this); + } } @Override