Update Pipe.java

Fixes https://github.com/BuildCraft/BuildCraft/issues/1035 .
resetGate() set's the gate to null which causes a NPE.
This commit is contained in:
viliml 2013-07-22 21:00:37 +02:00
parent cc24ad490c
commit 440b342165

View file

@ -405,8 +405,8 @@ public abstract class Pipe implements IPipe, IDropControlInventory {
}
if (hasGate()) {
resetGate();
gate.dropGate();
resetGate();
}
for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS) {