From c2ea3337f40a3a0248b6f0fe089990304a9d1e55 Mon Sep 17 00:00:00 2001 From: Gabriel PĂ©rez-Cerezo Date: Wed, 13 May 2020 01:15:05 +0200 Subject: refresh entities on rightclick --- init.lua | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3