aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/loaders/oreprocessing/ProcessingCell.java
diff options
context:
space:
mode:
authorMuramasa <haydenkilloh@gmail.com>2016-08-15 21:56:56 +0100
committerMuramasa <haydenkilloh@gmail.com>2016-08-15 21:56:56 +0100
commitccc7a1873918bd337290dc982441f76dbef6060b (patch)
tree2dea31e1b98ea59225d7e0551cb5fa99dafc0649 /src/main/java/gregtech/loaders/oreprocessing/ProcessingCell.java
parent0307f682b50d40d15058a87172aea545f89f5ed6 (diff)
downloadGT5-Unofficial-ccc7a1873918bd337290dc982441f76dbef6060b.tar.gz
GT5-Unofficial-ccc7a1873918bd337290dc982441f76dbef6060b.tar.bz2
GT5-Unofficial-ccc7a1873918bd337290dc982441f76dbef6060b.zip
Bugfixes 10
Diffstat (limited to 'src/main/java/gregtech/loaders/oreprocessing/ProcessingCell.java')
-rw-r--r--src/main/java/gregtech/loaders/oreprocessing/ProcessingCell.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingCell.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingCell.java
index df158b8dc8..e9fed85154 100644
--- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingCell.java
+++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingCell.java
@@ -61,12 +61,10 @@ public class ProcessingCell
tList.add(GT_Utility.copyAmount(64L, new Object[]{tStack}));
tStack.stackSize -= 64;
}
- if (tStack.stackSize > 0) {
- if (tCapsuleCount + GT_ModHandler.getCapsuleCellContainerCountMultipliedWithStackSize(new ItemStack[]{tStack}) <= 64L) {
- if (tCapsuleCount + GT_ModHandler.getCapsuleCellContainerCountMultipliedWithStackSize(new ItemStack[]{tStack}) < 0L ? tList.size() < 5 : tList.size() < 6) {
- tCapsuleCount += GT_ModHandler.getCapsuleCellContainerCountMultipliedWithStackSize(new ItemStack[]{tStack});
- tList.add(tStack);
- }
+ if ((tStack.stackSize > 0) && tCapsuleCount + GT_ModHandler.getCapsuleCellContainerCountMultipliedWithStackSize(new ItemStack[]{tStack}) <= 64L) {
+ if (tCapsuleCount + GT_ModHandler.getCapsuleCellContainerCountMultipliedWithStackSize(new ItemStack[]{tStack}) < 0L ? tList.size() < 5 : tList.size() < 6) {
+ tCapsuleCount += GT_ModHandler.getCapsuleCellContainerCountMultipliedWithStackSize(new ItemStack[]{tStack});
+ tList.add(tStack);
}
}
}