mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-03-15 04:11:24 +00:00
Update bookshelf on inventory move (#3039)
Otherwise the empty book slot icon does not get replaced
This commit is contained in:
parent
cd6ea53a52
commit
16bf166902
1 changed files with 3 additions and 0 deletions
|
@ -2555,6 +2555,9 @@ local default_bookshelf_def = {
|
|||
on_metadata_inventory_take = function(pos)
|
||||
update_bookshelf(pos)
|
||||
end,
|
||||
on_metadata_inventory_move = function(pos)
|
||||
update_bookshelf(pos)
|
||||
end,
|
||||
on_blast = function(pos)
|
||||
local drops = {}
|
||||
default.get_inventory_drops(pos, "books", drops)
|
||||
|
|
Loading…
Add table
Reference in a new issue