mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-27 11:38:03 +01:00
Use offset constant
This commit is contained in:
parent
1715de67d2
commit
1c916b92fa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user