summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-05-10 22:13:44 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-05-10 22:13:44 +0200
commit91da58d88a2c3953f5989f98b23487b9e5343030 (patch)
tree0962703e753e893b029be28dfe7411a5875f8bae
parent8d7c31052ae8f06245dc6abd280ff5c1ae955780 (diff)
downloadsmartshop-91da58d88a2c3953f5989f98b23487b9e5343030.zip
smartshop-91da58d88a2c3953f5989f98b23487b9e5343030.tar.gz
smartshop-91da58d88a2c3953f5989f98b23487b9e5343030.tar.bz2
add lbm to add smartshops to stats
-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")