Update itemname periodically

master
Wuzzy 2016-09-02 15:11:51 +02:00
parent 29fec94d94
commit 5c64fcc4de
1 changed files with 2 additions and 0 deletions

View File

@ -191,6 +191,8 @@ easyvend.machine_check = function(pos, node)
end
meta:set_string("infotext", easyvend.make_infotext(node.name, machine_owner, cost, number, itemname))
end
itemname=itemstack:get_name()
meta:set_string("itemname", itemname)
if node.name == "easyvend:vendor" or node.name == "easyvend:depositor" then
if active then return easyvend.machine_enable(pos, node) end