From 601ec6cd94af4372e4d7095c48c229b3f9751e51 Mon Sep 17 00:00:00 2001 From: Niklp <89982526+Niklp09@users.noreply.github.com> Date: Fri, 3 Nov 2023 10:03:39 +0100 Subject: [PATCH] Fix not updating vessel shelf infotext --- mods/vessels/init.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mods/vessels/init.lua b/mods/vessels/init.lua index 4bd0fb4d..77cf98b9 100644 --- a/mods/vessels/init.lua +++ b/mods/vessels/init.lua @@ -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)