diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2018-05-10 22:13:44 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2018-05-10 22:13:44 +0200 |
commit | 91da58d88a2c3953f5989f98b23487b9e5343030 (patch) | |
tree | 0962703e753e893b029be28dfe7411a5875f8bae | |
parent | 8d7c31052ae8f06245dc6abd280ff5c1ae955780 (diff) | |
download | smartshop-91da58d88a2c3953f5989f98b23487b9e5343030.tar.gz smartshop-91da58d88a2c3953f5989f98b23487b9e5343030.tar.bz2 smartshop-91da58d88a2c3953f5989f98b23487b9e5343030.zip |
add lbm to add smartshops to stats
-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")
|