Fix pushLiquid NPE

This commit is contained in:
CrazyPants committed 2013-12-16 00:02:44 +08:00
1 parent fac2b7c6fa
commit fd792740e9
1 file changed
+1 -1
@@ -426,7 +426,7 @@ public class LiquidConduit extends AbstractConduit implements ILiquidConduit {
}
private int pushLiquid(ForgeDirection from, FluidStack pushStack, boolean doPush, int token) {
if(token == currentPushToken || pushStack == null || pushStack.amount <= 0) {
if(token == currentPushToken || pushStack == null || pushStack.amount <= 0 || network == null) {
return 0;
}
currentPushToken = token;