diff options
author | Dream-Master <dream-master@gmx.net> | 2016-10-16 01:02:29 +0200 |
---|---|---|
committer | Dream-Master <dream-master@gmx.net> | 2016-10-16 01:02:29 +0200 |
commit | 148aa7636d15ccf0593b31f39529aea10eba3c19 (patch) | |
tree | be6bd89b1566812d7843dc0cb292fc1f841d6079 /src/main/java/gregtech/loaders/oreprocessing/ProcessingCell.java | |
parent | 08217ad00eb35780f2162d5b136a18ef51fe34a1 (diff) | |
parent | bf25038fc1f45d690c762fcf4e4d2c427aba19fe (diff) | |
download | GT5-Unofficial-148aa7636d15ccf0593b31f39529aea10eba3c19.tar.gz GT5-Unofficial-148aa7636d15ccf0593b31f39529aea10eba3c19.tar.bz2 GT5-Unofficial-148aa7636d15ccf0593b31f39529aea10eba3c19.zip |
Merge branch 'Pollution-code' into experimental
Diffstat (limited to 'src/main/java/gregtech/loaders/oreprocessing/ProcessingCell.java')
-rw-r--r-- | src/main/java/gregtech/loaders/oreprocessing/ProcessingCell.java | 10 |
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); } } } |