From 1c916b92fa9fbc87bb24c7a5f2c06a0e2ce2d5b3 Mon Sep 17 00:00:00 2001 From: themode Date: Sat, 2 Jan 2021 13:16:02 +0100 Subject: [PATCH] Use offset constant --- src/main/java/net/minestom/server/inventory/Inventory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;