Fix initial startCondition of DOUBLE_CLICK being wrong as well

This commit is contained in:
Moulberry 2021-09-08 23:22:22 +08:00
parent 08c9339fae
commit 788bb71587

View File

@ -287,7 +287,7 @@ public final class InventoryClickProcessor {
public @NotNull InventoryClickResult doubleClick(@NotNull AbstractInventory clickedInventory, @NotNull AbstractInventory inventory, @NotNull Player player, int slot,
@NotNull ItemStack clicked, @NotNull ItemStack cursor) {
InventoryClickResult clickResult = startCondition(player, inventory, slot, ClickType.START_DOUBLE_CLICK, clicked, cursor);
InventoryClickResult clickResult = startCondition(player, clickedInventory, slot, ClickType.START_DOUBLE_CLICK, clicked, cursor);
if (clickResult.isCancel()) return clickResult;
if (cursor.isAir()) return clickResult.cancelled();