aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub <53441451+kuba6000@users.noreply.github.com>2022-06-30 22:59:24 +0200
committerGitHub <noreply@github.com>2022-06-30 22:59:24 +0200
commitf7bdbd14a6f5e8fb4e5af0010b4cfcae3282feee (patch)
tree51d1d40fd39d9a3413588bf79bc8ee3f5c379857 /src
parent570b349783baef8767ded3bcd5f7d7b2a74e19af (diff)
downloadGT5-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.java9
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]);