From 440b342165088ce0cbcff2b9773103d330449fd6 Mon Sep 17 00:00:00 2001 From: viliml Date: Mon, 22 Jul 2013 21:00:37 +0200 Subject: [PATCH] Update Pipe.java Fixes https://github.com/BuildCraft/BuildCraft/issues/1035 . resetGate() set's the gate to null which causes a NPE. --- common/buildcraft/transport/Pipe.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/buildcraft/transport/Pipe.java b/common/buildcraft/transport/Pipe.java index bf7b440f..2cd7efcf 100644 --- a/common/buildcraft/transport/Pipe.java +++ b/common/buildcraft/transport/Pipe.java @@ -405,8 +405,8 @@ public abstract class Pipe implements IPipe, IDropControlInventory { } if (hasGate()) { - resetGate(); gate.dropGate(); + resetGate(); } for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS) {