Skip to content

Commit cd6ea53

Browse files
committed
Update bookshelf infotext on put and take inv actions
1 parent 16b6bdd commit cd6ea53

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mods/default/nodes.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2549,6 +2549,12 @@ local default_bookshelf_def = {
25492549
end
25502550
return 0
25512551
end,
2552+
on_metadata_inventory_put = function(pos)
2553+
update_bookshelf(pos)
2554+
end,
2555+
on_metadata_inventory_take = function(pos)
2556+
update_bookshelf(pos)
2557+
end,
25522558
on_blast = function(pos)
25532559
local drops = {}
25542560
default.get_inventory_drops(pos, "books", drops)

0 commit comments

Comments
 (0)