Fix not updating vessel shelf infotext

This commit is contained in:
Niklp 2023-11-03 10:03:39 +01:00 committed by GitHub
parent b58991d4f3
commit 601ec6cd94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)