mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Inventory mouse shortcut improvements (#13146)
Co-authored-by: Muhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>
This commit is contained in:
parent
23f7aab354
commit
252c79d53a
7 changed files with 520 additions and 168 deletions
|
@ -162,6 +162,10 @@ struct ItemStack
|
|||
ItemStack *restitem, // may be NULL
|
||||
IItemDefManager *itemdef) const;
|
||||
|
||||
// Checks if another itemstack would stack with this one.
|
||||
// Does not check if the item actually fits in the stack.
|
||||
bool stacksWith(ItemStack other) const;
|
||||
|
||||
// Takes some items.
|
||||
// If there are not enough, takes as many as it can.
|
||||
// Returns empty item if couldn't take any.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue