From 91da58d88a2c3953f5989f98b23487b9e5343030 Mon Sep 17 00:00:00 2001 From: Gabriel PĂ©rez-Cerezo Date: Thu, 10 May 2018 22:13:44 +0200 Subject: add lbm to add smartshops to stats --- init.lua | 8 ++++++++ 1 file changed, 8 insertions(+) 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") -- cgit v1.2.3