Skip to content

Commit

Permalink
Fix index in ItemHandlerCopySlot#setStackCopy (#1804)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matyrobbrt authored Dec 27, 2024
1 parent 2a0abf9 commit cddb9c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected ItemStack getStackCopy() {

@Override
protected void setStackCopy(ItemStack stack) {
((IItemHandlerModifiable) slotItemHandler.getItemHandler()).setStackInSlot(index, stack);
((IItemHandlerModifiable) slotItemHandler.getItemHandler()).setStackInSlot(slotItemHandler.index, stack);
}

@Override
Expand Down

0 comments on commit cddb9c1

Please sign in to comment.