From a7026c4d537165a6e351e3f794f0866779ec9f1b Mon Sep 17 00:00:00 2001 From: Lunovox Heavenfinder Date: Sun, 19 Apr 2020 14:57:41 -0300 Subject: [PATCH] =?UTF-8?q?CORRE=C3=87=C3=83O=20DE=20BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.lua b/api.lua index 2529bdf..6e121bb 100644 --- a/api.lua +++ b/api.lua @@ -384,7 +384,7 @@ modMinerTrade.sendMailMachine = function(posMachine, ownername, message) if carta~=nil then minetest.log('action', modMinerTrade.translate("A letter was sent by the dispensing machine '%s' to '%s' advising about '%s'!"): - format(posMachineName, ownername , message) + format(modMinerTrade.getPosMachineName(posMachine), ownername , message) ) else minetest.log( @@ -393,7 +393,7 @@ modMinerTrade.sendMailMachine = function(posMachine, ownername, message) ) end modMinerTrade.setMachineFlagsAlert(posMachine, agora) - end --if type(modMinerTrade.machine_flags[posMachineName].lastalert)~="number" or modMinerTrade.machine_flags[posMachineName].lastalert + mailMachineInterval < agora then + end --if macFlag + mailMachineInterval < agora then else minetest.log( "error",("[modMinerTrade.sendMailMachine(posMachine='%s', ownername='%s', message='%s')] "):format(dump(posMachine), dump(ownername), dump(message))