Skip to content

Commit

Permalink
Update bookshelf infotext on put and take inv actions
Browse files Browse the repository at this point in the history
  • Loading branch information
appgurueu committed Jun 6, 2023
1 parent 16b6bdd commit cd6ea53
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mods/default/nodes.lua
Expand Up @@ -2549,6 +2549,12 @@ local default_bookshelf_def = {
end
return 0
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)
local drops = {}
default.get_inventory_drops(pos, "books", drops)
Expand Down

0 comments on commit cd6ea53

Please sign in to comment.