diff options
author | Jakub <53441451+kuba6000@users.noreply.github.com> | 2022-06-30 22:59:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-30 22:59:24 +0200 |
commit | f7bdbd14a6f5e8fb4e5af0010b4cfcae3282feee (patch) | |
tree | 51d1d40fd39d9a3413588bf79bc8ee3f5c379857 /src | |
parent | 570b349783baef8767ded3bcd5f7d7b2a74e19af (diff) | |
download | GT5-Unofficial-f7bdbd14a6f5e8fb4e5af0010b4cfcae3282feee.tar.gz GT5-Unofficial-f7bdbd14a6f5e8fb4e5af0010b4cfcae3282feee.tar.bz2 GT5-Unofficial-f7bdbd14a6f5e8fb4e5af0010b4cfcae3282feee.zip |
Fix not consumed input (#1103)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_IntegratedOreFactory.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_IntegratedOreFactory.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_IntegratedOreFactory.java index 2ff1e998d5..1846983918 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_IntegratedOreFactory.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_IntegratedOreFactory.java @@ -268,9 +268,10 @@ public class GT_MetaTileEntity_IntegratedOreFactory extends GT_MetaTileEntity_En ore.stackSize = 0; } else { tRealUsed = tCharged; - tOres.add(GT_Utility.copyAmount(ore.stackSize - tCharged, ore)); - tCharged = 0; + tOres.add(GT_Utility.copyAmount(tCharged, ore)); ore.stackSize -= tCharged; + tCharged = 0; + break; } } } @@ -279,8 +280,8 @@ public class GT_MetaTileEntity_IntegratedOreFactory extends GT_MetaTileEntity_En return false; } - depleteInput(GT_ModHandler.getDistilledWater(tRealUsed * 200)); - depleteInput(Materials.Lubricant.getFluid(tRealUsed * 2)); + depleteInput(GT_ModHandler.getDistilledWater(tRealUsed * 200L)); + depleteInput(Materials.Lubricant.getFluid(tRealUsed * 2L)); sMidProduct = tOres.toArray(new ItemStack[0]); |