diff options
author | David Vierra <codewarrior@hawaii.rr.com> | 2018-03-15 03:21:14 -1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-15 03:21:14 -1000 |
commit | 0490b705fb48cf1b6d157c619cca10fd8e86952a (patch) | |
tree | fbe315aa2efcaf1517ce3a66e21e287f569697d2 /src/main/java/gregtech | |
parent | e3abd1efffbd136a9a1f5fbaa82e8b69fe2a6b10 (diff) | |
download | GT5-Unofficial-0490b705fb48cf1b6d157c619cca10fd8e86952a.tar.gz GT5-Unofficial-0490b705fb48cf1b6d157c619cca10fd8e86952a.tar.bz2 GT5-Unofficial-0490b705fb48cf1b6d157c619cca10fd8e86952a.zip |
Fix Pump machine inserting into wrong side of tank/pipe above
Fixes an issue where a pipe above the pump with its top side set to "Input Disabled" (to control flow direction) stops receiving fluid from the pump.
Diffstat (limited to 'src/main/java/gregtech')
-rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Pump.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Pump.java b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Pump.java index 23e5b6a482..346ce14f1e 100644 --- a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Pump.java +++ b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Pump.java @@ -253,9 +253,9 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch { if (tTank != null) { FluidStack tDrained = drain(1000, false); if (tDrained != null) { - int tFilledAmount = tTank.fill(ForgeDirection.UP, tDrained, false); + int tFilledAmount = tTank.fill(ForgeDirection.DOWN, tDrained, false); if (tFilledAmount > 0) - tTank.fill(ForgeDirection.UP, drain(tFilledAmount, true), true); + tTank.fill(ForgeDirection.DOWN, drain(tFilledAmount, true), true); } } } |