aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorD-Cysteine <54219287+D-Cysteine@users.noreply.github.com>2021-08-05 20:57:30 -0600
committerD-Cysteine <54219287+D-Cysteine@users.noreply.github.com>2021-08-05 20:57:30 -0600
commita3a540cc6e37ec9a8169146552caae037d70b37e (patch)
tree2388919311378e0d6f6f1a4c1777f896fe9ae738 /src
parentb449357cd23a3dd4888c5deca5887ced3b0f8991 (diff)
downloadGT5-Unofficial-a3a540cc6e37ec9a8169146552caae037d70b37e.tar.gz
GT5-Unofficial-a3a540cc6e37ec9a8169146552caae037d70b37e.tar.bz2
GT5-Unofficial-a3a540cc6e37ec9a8169146552caae037d70b37e.zip
Update GT_MetaTileEntity_ChestBuffer.java
Diffstat (limited to 'src')
-rw-r--r--src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_ChestBuffer.java17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_ChestBuffer.java b/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_ChestBuffer.java
index 9da0eace39..774639401a 100644
--- a/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_ChestBuffer.java
+++ b/src/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_ChestBuffer.java
@@ -124,22 +124,7 @@ public class GT_MetaTileEntity_ChestBuffer extends GT_MetaTileEntity_Buffer {
@Override
protected void fillStacksIntoFirstSlots() {
sortStacks();
- // Merge small stacks together
- // The last slot of mInventory is invalid, so we need to avoid iterating over it.
- // Thus all max indices are reduced by 1 here.
- for (int i = 0; i < this.mInventory.length - 2;) {
- //GT_FML_LOGGER.info( (this.mInventory[i] == null) ? "Slot empty " + i : "Slot " + i + " holds " + this.mInventory[i].getDisplayName());
- for (int j = i + 1; j < this.mInventory.length - 1; j++) {
- if ((this.mInventory[j] != null) && ((GT_Utility.areStacksEqual(this.mInventory[i], this.mInventory[j])))) {
- GT_Utility.moveStackFromSlotAToSlotB(getBaseMetaTileEntity(), getBaseMetaTileEntity(), j, i, (byte) 64, (byte) 1, (byte) 64, (byte) 1);
- //GT_FML_LOGGER.info( "Moving slot " + j + " into slot " + i );
- }
- else {
- i=j;
- break; // No more matching items for this i, do next i
- }
- }
- }
+ super.fillStacksIntoFirstSlots();
}
@Override