mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-20 07:02:32 +01:00
Fix double-click calling startCondition on the wrong inventory
This commit is contained in:
parent
571624a952
commit
08c9339fae
@ -303,7 +303,7 @@ public final class InventoryClickProcessor {
|
|||||||
var pair = TransactionType.TAKE.process(inv, rest, (index, itemStack) -> {
|
var pair = TransactionType.TAKE.process(inv, rest, (index, itemStack) -> {
|
||||||
if (index == slot) // Prevent item lose/duplication
|
if (index == slot) // Prevent item lose/duplication
|
||||||
return false;
|
return false;
|
||||||
final InventoryClickResult result = startCondition(player, inventory, index, ClickType.DOUBLE_CLICK, itemStack, cursor);
|
final InventoryClickResult result = startCondition(player, inv, index, ClickType.DOUBLE_CLICK, itemStack, cursor);
|
||||||
return !result.isCancel();
|
return !result.isCancel();
|
||||||
});
|
});
|
||||||
var itemResult = pair.left();
|
var itemResult = pair.left();
|
||||||
|
Loading…
Reference in New Issue
Block a user