summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 746a28a..b2abcd5 100644
--- a/init.lua
+++ b/init.lua
@@ -446,6 +446,7 @@ on_construct = function(pos)
meta:set_int("ghost", 1)
end,
on_rightclick = function(pos, node, player, itemstack, pointed_thing)
+ smartshop.update(pos, "update")
smartshop.showform(pos,player)
end,
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
@@ -614,6 +615,7 @@ if false then -- This lbm is used to add pre-update smartshops to the price data
})
end
+
-- load itemstats
local file = io.open(minetest.get_worldpath().."/smartshop_itemcounts.txt", "r")
if file then