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 Nov 3, 2023
1 parent 27ceb47 commit fe4e233
Showing 1 changed file with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -506,23 +506,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

0 comments on commit fe4e233

Please sign in to comment.