Skip to content

Commit

Permalink
remove comment
Browse files Browse the repository at this point in the history
use `getExportItems()`
remove commented code
  • Loading branch information
ghzdude committed Oct 25, 2023
1 parent 6dfb137 commit 38a72bd
Showing 1 changed file with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -529,23 +529,7 @@ public Type getType() {

@Override
public IItemHandler getTypeValue() {
return new ItemHandlerProxy(this.itemInventory, this.combinedInventory){
@NotNull
@Override
public ItemStack insertItem(int slot, @NotNull ItemStack stack, boolean simulate) {
return getItemInventory().insertItem(slot, stack, simulate);
}

@NotNull
@Override
public ItemStack extractItem(int slot, int amount, boolean simulate) {
ItemStack extractedStack = getItemInventory().extractItem(0, amount, simulate);
if (extractedStack.isEmpty()) {
extractedStack = getExportItems().extractItem(0, amount, simulate);
}
return extractedStack;
}
};
return this.itemInventory;
}

@Override
Expand Down Expand Up @@ -660,7 +644,7 @@ public ItemStack insertItem(int slot, @Nonnull ItemStack insertedStack, boolean
MetaTileEntityQuantumChest.this.exportItems.insertItem(0, insertedStackCopy, false);
}
return insertedStack;

} else {
MetaTileEntityQuantumChest.this.itemsStoredInside += remainingStack.getCount();
}
Expand Down

0 comments on commit 38a72bd

Please sign in to comment.