Remove unnecessary air check

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2021-10-02 01:58:42 +02:00
parent 26341005b1
commit e71c420fa8

View File

@ -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;