1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-12-22 15:00:18 +01:00

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

View File

@ -81,6 +81,15 @@ local vessels_shelf_def = {
minetest.remove_node(pos) minetest.remove_node(pos)
return drops return drops
end, 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") default.set_inventory_action_loggers(vessels_shelf_def, "vessels shelf")
minetest.register_node("vessels:shelf", vessels_shelf_def) minetest.register_node("vessels:shelf", vessels_shelf_def)