Temporary fix for shift click

This commit is contained in:
TheMode 2021-04-19 20:09:42 +02:00
parent 1f08f5dc34
commit 1daaeda63f

View File

@ -344,7 +344,7 @@ public class Inventory extends AbstractInventory implements Viewable {
if (isInWindow) {
clickResult = clickProcessor.shiftClick(this, player, slot, clicked, cursor,
// Player inventory loop
new InventoryClickLoopHandler(0, PlayerInventory.INVENTORY_SIZE, 1,
new InventoryClickLoopHandler(offset, PlayerInventory.INVENTORY_SIZE + offset, 1,
PlayerInventoryUtils::convertToPacketSlot,
index -> isClickInWindow(index) ?
getItemStack(index) :