mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-07 08:58:20 +01:00
Shift click code cleanup
This commit is contained in:
parent
3fa89737d9
commit
75da093475
@ -189,12 +189,8 @@ public class InventoryClickProcessor {
|
|||||||
return !result.isCancel();
|
return !result.isCancel();
|
||||||
});
|
});
|
||||||
|
|
||||||
var itemResult = pair.left();
|
ItemStack itemResult = TransactionOption.ALL.fill(targetInventory, pair.left(), pair.right());
|
||||||
var map = pair.right();
|
|
||||||
map.forEach(targetInventory::setItemStack);
|
|
||||||
|
|
||||||
clickResult.setClicked(itemResult);
|
clickResult.setClicked(itemResult);
|
||||||
|
|
||||||
return clickResult;
|
return clickResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -216,12 +212,8 @@ public class InventoryClickProcessor {
|
|||||||
return !result.isCancel();
|
return !result.isCancel();
|
||||||
}, start, end, step);
|
}, start, end, step);
|
||||||
|
|
||||||
var itemResult = pair.left();
|
ItemStack itemResult = TransactionOption.ALL.fill(targetInventory, pair.left(), pair.right());
|
||||||
var map = pair.right();
|
|
||||||
map.forEach(targetInventory::setItemStack);
|
|
||||||
|
|
||||||
clickResult.setClicked(itemResult);
|
clickResult.setClicked(itemResult);
|
||||||
|
|
||||||
return clickResult;
|
return clickResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user