mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-29 04:28:21 +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,
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user