From cd6ea53a524bfb6fdc95cfcd23112dc970fc15f9 Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Tue, 6 Jun 2023 14:10:37 +0200 Subject: [PATCH] Update bookshelf infotext on put and take inv actions --- mods/default/nodes.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index d59f6384..14bd344b 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -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)