aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities
diff options
context:
space:
mode:
authorGuinea Wheek <guineawheek@users.noreply.github.com>2022-10-24 21:53:08 -0700
committerGitHub <noreply@github.com>2022-10-25 06:53:08 +0200
commitcc22a722297e09b6e75cb82bb1231c7cede2a03d (patch)
treea3f48b1c02d75f716d2ebf64d6e743fac9d49c2f /src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities
parenta6453a22a90ceca518658cb535048c84bdd8d19c (diff)
downloadGT5-Unofficial-cc22a722297e09b6e75cb82bb1231c7cede2a03d.tar.gz
GT5-Unofficial-cc22a722297e09b6e75cb82bb1231c7cede2a03d.tar.bz2
GT5-Unofficial-cc22a722297e09b6e75cb82bb1231c7cede2a03d.zip
fix crop manager log spam (#408)
Diffstat (limited to 'src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities')
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_CropHarvestor.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_CropHarvestor.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_CropHarvestor.java
index 96570f356b..363e6b1c95 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_CropHarvestor.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_CropHarvestor.java
@@ -266,6 +266,7 @@ public class GT_MetaTileEntity_CropHarvestor extends GT_MetaTileEntity_BasicTank
ItemStack invStack = mInventory[i];
if (invStack == null || GT_Utility.isStackInvalid(invStack) || invStack.stackSize == 0) {
Iterator<Entry<ItemStack, Integer>> iter = aAllDrops.entrySet().iterator();
+ if (!iter.hasNext()) return;
Entry<ItemStack, Integer> e = iter.next();
int toAdd = e.getValue();
int toAddThisSlot = Math.min(toAdd, e.getKey().getMaxStackSize());