mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Inventory: Fix order of callbacks when swapping items
This commit is contained in:
parent
d5d6e36ae0
commit
4245a7604b
6 changed files with 119 additions and 95 deletions
|
@ -286,8 +286,8 @@ public:
|
|||
|
||||
// Move an item to a different list (or a different stack in the same list)
|
||||
// count is the maximum number of items to move (0 for everything)
|
||||
// returns number of moved items
|
||||
u32 moveItem(u32 i, InventoryList *dest, u32 dest_i,
|
||||
// returns the moved stack
|
||||
ItemStack moveItem(u32 i, InventoryList *dest, u32 dest_i,
|
||||
u32 count = 0, bool swap_if_needed = true, bool *did_swap = NULL);
|
||||
|
||||
// like moveItem, but without a fixed destination index
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue