Fixed shift click ignoring canceled events

This commit is contained in:
themode 2020-10-26 19:31:25 +01:00
parent 3fe58b6b20
commit 0337fff50f

View File

@ -167,7 +167,7 @@ public class InventoryClickProcessor {
public InventoryClickResult shiftClick(Inventory inventory, Player player, int slot, public InventoryClickResult shiftClick(Inventory inventory, Player player, int slot,
ItemStack clicked, ItemStack cursor, InventoryClickLoopHandler... loopHandlers) { ItemStack clicked, ItemStack cursor, InventoryClickLoopHandler... loopHandlers) {
InventoryClickResult clickResult = new InventoryClickResult(clicked, cursor); InventoryClickResult clickResult = startCondition(inventory, player, slot, ClickType.SHIFT_CLICK, clicked, cursor);
if (clickResult.isCancel()) { if (clickResult.isCancel()) {
return clickResult; return clickResult;