diff options
author | GlodBlock <60341015+GlodBlock@users.noreply.github.com> | 2021-06-03 12:18:16 +0800 |
---|---|---|
committer | DreamMasterXXL <dream-master@gmx.net> | 2021-08-25 16:16:40 +0200 |
commit | 1c00ffe8a568e25124cfe7796fa2e5e1a483a1eb (patch) | |
tree | f32bb4cd2f587fc3a39b62a3789838d784daa8f2 /src | |
parent | 6844304a87c9a21f8ccb905666cf68d539e2377b (diff) | |
download | GT5-Unofficial-1c00ffe8a568e25124cfe7796fa2e5e1a483a1eb.tar.gz GT5-Unofficial-1c00ffe8a568e25124cfe7796fa2e5e1a483a1eb.tar.bz2 GT5-Unofficial-1c00ffe8a568e25124cfe7796fa2e5e1a483a1eb.zip |
fix the problem of duping fluids
(cherry picked from commit ed7e9fed49f16afd4fb9852003e82d43c96a412d)
Diffstat (limited to 'src')
-rw-r--r-- | src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_AirIntake.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_AirIntake.java b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_AirIntake.java index a7d395b0a1..e86b887532 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_AirIntake.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_AirIntake.java @@ -214,7 +214,10 @@ public class GT_MetaTileEntity_Hatch_AirIntake extends GT_MetaTileEntity_Hatch_I return true; } - public boolean addAirToHatch(long aTick) { + public boolean addAirToHatch(long aTick) { + if (this.mFluid != null) + if(this.mFluid.getFluid() != FluidUtils.getFluidStack("air", 1).getFluid()) + return false; if (!this.getBaseMetaTileEntity().getAirAtSide(this.getBaseMetaTileEntity().getFrontFacing())) { return false; } |