From cddb9c1a6de5a373b3c98bc33dcbecca0abf9c4d Mon Sep 17 00:00:00 2001 From: Matyrobbrt <65940752+Matyrobbrt@users.noreply.github.com> Date: Fri, 27 Dec 2024 21:15:25 +0200 Subject: [PATCH] Fix index in `ItemHandlerCopySlot#setStackCopy` (#1804) --- .../java/net/neoforged/neoforge/items/ItemHandlerCopySlot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/neoforged/neoforge/items/ItemHandlerCopySlot.java b/src/main/java/net/neoforged/neoforge/items/ItemHandlerCopySlot.java index 0f7ad24653c..735c036df07 100644 --- a/src/main/java/net/neoforged/neoforge/items/ItemHandlerCopySlot.java +++ b/src/main/java/net/neoforged/neoforge/items/ItemHandlerCopySlot.java @@ -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