mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-28 12:07:42 +01:00
Fixed shift click ignoring canceled events
This commit is contained in:
parent
3fe58b6b20
commit
0337fff50f
@ -167,7 +167,7 @@ public class InventoryClickProcessor {
|
||||
|
||||
public InventoryClickResult shiftClick(Inventory inventory, Player player, int slot,
|
||||
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()) {
|
||||
return clickResult;
|
||||
|
Loading…
Reference in New Issue
Block a user