diff --git a/mods/smartshop/init.lua b/mods/smartshop/init.lua index 6e1d85f4..fefffb01 100644 --- a/mods/smartshop/init.lua +++ b/mods/smartshop/init.lua @@ -235,6 +235,9 @@ on_construct = function(pos) meta:get_inventory():set_size("give4", 1) meta:get_inventory():set_size("pay4", 1) end, +on_punch = function(pos, node, player) + smartshop.update(pos, "update") + end, on_rightclick = function(pos, node, player, itemstack, pointed_thing) smartshop.showform(pos,player) end,