aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGlodBlock <60341015+GlodBlock@users.noreply.github.com>2021-06-20 22:56:42 +0800
committerGitHub <noreply@github.com>2021-06-20 22:56:42 +0800
commit717915d2bfb5a8b3173a00a81e8b5cf718d64754 (patch)
tree4dcd0eaa587218c91ad0536625577d59b62298b6 /src
parentb93e74c6984edb6ec676e24a13dbb686ce60016a (diff)
downloadGT5-Unofficial-717915d2bfb5a8b3173a00a81e8b5cf718d64754.tar.gz
GT5-Unofficial-717915d2bfb5a8b3173a00a81e8b5cf718d64754.tar.bz2
GT5-Unofficial-717915d2bfb5a8b3173a00a81e8b5cf718d64754.zip
Update GT_MetaTileEntity_Hatch_OutputBus.java
Diffstat (limited to 'src')
-rw-r--r--src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_OutputBus.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_OutputBus.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_OutputBus.java
index d248814e02..a46157fb36 100644
--- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_OutputBus.java
+++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_OutputBus.java
@@ -126,7 +126,7 @@ public class GT_MetaTileEntity_Hatch_OutputBus extends GT_MetaTileEntity_Hatch {
* @return true if stack is fully accepted. false is stack is partially accepted or nothing is accepted
*/
public boolean storeAll(ItemStack aStack) {
- for (int i = 0, mInventoryLength = mInventory.length; i < mInventoryLength; i++) {
+ for (int i = 0, mInventoryLength = mInventory.length; i < mInventoryLength && aStack.stackSize > 0; i++) {
ItemStack tSlot = mInventory[i];
if (GT_Utility.isStackInvalid(tSlot)) {
if (aStack.stackSize <= getInventoryStackLimit()) {