Skip to content

Commit

Permalink
Fix not updating vessel shelf infotext
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklp09 committed Nov 3, 2023
1 parent b58991d commit 601ec6c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mods/vessels/init.lua
Expand Up @@ -81,6 +81,15 @@ local vessels_shelf_def = {
minetest.remove_node(pos)
return drops
end,
on_metadata_inventory_put = function(pos)
update_vessels_shelf(pos)
end,
on_metadata_inventory_take = function(pos)
update_vessels_shelf(pos)
end,
on_metadata_inventory_move = function(pos)
update_vessels_shelf(pos)
end,
}
default.set_inventory_action_loggers(vessels_shelf_def, "vessels shelf")
minetest.register_node("vessels:shelf", vessels_shelf_def)
Expand Down

0 comments on commit 601ec6c

Please sign in to comment.