diff --git a/src/main/java/net/minestom/server/inventory/Inventory.java b/src/main/java/net/minestom/server/inventory/Inventory.java index 544d9eabe..6a17e1809 100644 --- a/src/main/java/net/minestom/server/inventory/Inventory.java +++ b/src/main/java/net/minestom/server/inventory/Inventory.java @@ -612,7 +612,7 @@ public class Inventory implements InventoryModifier, InventoryClickHandler, View new InventoryClickLoopHandler(0, PlayerInventory.INVENTORY_SIZE - 9, 1, PlayerInventoryUtils::convertToPacketSlot, index -> playerInventory.getItemStack(index, PlayerInventoryUtils.OFFSET), - (index, itemStack) -> playerInventory.setItemStack(index, 9, itemStack))); + (index, itemStack) -> playerInventory.setItemStack(index, PlayerInventoryUtils.OFFSET, itemStack))); if (clickResult == null) return false;