mirror of
https://gitlab.com/lunovox/minertrade.git
synced 2025-03-21 16:01:22 +00:00
CORREÇÃO DE BUG
This commit is contained in:
parent
169d86e448
commit
a7026c4d53
1 changed files with 2 additions and 2 deletions
4
api.lua
4
api.lua
|
@ -384,7 +384,7 @@ modMinerTrade.sendMailMachine = function(posMachine, ownername, message)
|
||||||
if carta~=nil then
|
if carta~=nil then
|
||||||
minetest.log('action',
|
minetest.log('action',
|
||||||
modMinerTrade.translate("A letter was sent by the dispensing machine '%s' to '%s' advising about '%s'!"):
|
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
|
else
|
||||||
minetest.log(
|
minetest.log(
|
||||||
|
@ -393,7 +393,7 @@ modMinerTrade.sendMailMachine = function(posMachine, ownername, message)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
modMinerTrade.setMachineFlagsAlert(posMachine, agora)
|
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
|
else
|
||||||
minetest.log(
|
minetest.log(
|
||||||
"error",("[modMinerTrade.sendMailMachine(posMachine='%s', ownername='%s', message='%s')] "):format(dump(posMachine), dump(ownername), dump(message))
|
"error",("[modMinerTrade.sendMailMachine(posMachine='%s', ownername='%s', message='%s')] "):format(dump(posMachine), dump(ownername), dump(message))
|
||||||
|
|
Loading…
Add table
Reference in a new issue