summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 72264e5..62f9250 100644
--- a/init.lua
+++ b/init.lua
@@ -534,6 +534,14 @@ minetest.register_chatcommand("smstats", {
end,
})
+minetest.register_lbm({
+ name = "smartshop:update",
+ nodenames = {"smartshop:shop"}
+ action = function(pos, node)
+ smartshop.update_info(pos)
+ end,
+})
+
-- load itemstats
local file = io.open(minetest.get_worldpath().."/smartshop_itemcounts.txt", "r")