mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-03-21 15:21:21 +00:00
Update bookshelf infotext on put and take inv actions
This commit is contained in:
parent
16b6bdde0a
commit
cd6ea53a52
1 changed files with 6 additions and 0 deletions
|
@ -2549,6 +2549,12 @@ local default_bookshelf_def = {
|
||||||
end
|
end
|
||||||
return 0
|
return 0
|
||||||
end,
|
end,
|
||||||
|
on_metadata_inventory_put = function(pos)
|
||||||
|
update_bookshelf(pos)
|
||||||
|
end,
|
||||||
|
on_metadata_inventory_take = function(pos)
|
||||||
|
update_bookshelf(pos)
|
||||||
|
end,
|
||||||
on_blast = function(pos)
|
on_blast = function(pos)
|
||||||
local drops = {}
|
local drops = {}
|
||||||
default.get_inventory_drops(pos, "books", drops)
|
default.get_inventory_drops(pos, "books", drops)
|
||||||
|
|
Loading…
Add table
Reference in a new issue