mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-05 18:32:28 +01:00
Remove unnecessary air check
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
26341005b1
commit
e71c420fa8
@ -149,8 +149,6 @@ public final class InventoryClickProcessor {
|
||||
final var pair = TransactionType.ADD.process(targetInventory, clicked, (index, itemStack) -> {
|
||||
if (inventory == targetInventory && index == slot)
|
||||
return false; // Prevent item lose/duplication
|
||||
if (itemStack.isAir())
|
||||
return false; // Ignore air click
|
||||
InventoryClickResult result = startCondition(player, targetInventory, index, ClickType.SHIFT_CLICK, itemStack, cursor);
|
||||
if (result.isCancel()) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user