diff options
-rw-r--r-- | init.lua | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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")
|