mirror of
https://gitlab.com/lunovox/e-urn.git
synced 2025-03-20 17:51:21 +00:00
[bugfix] Correção de bug crítico de auto-contagem de votos!
This commit is contained in:
parent
862fc7c446
commit
a32474939c
1 changed files with 8 additions and 10 deletions
18
api.lua
18
api.lua
|
@ -476,16 +476,14 @@ minetest.after(3.5, function()
|
||||||
local mesChecked = os.date("%m", tonumber(modEUrn.handler.elected.president.when))
|
local mesChecked = os.date("%m", tonumber(modEUrn.handler.elected.president.when))
|
||||||
if mesChecked ~= mesAtual then
|
if mesChecked ~= mesAtual then
|
||||||
local result, cause = modEUrn.doCheckPresident()
|
local result, cause = modEUrn.doCheckPresident()
|
||||||
if result == true then
|
local titlecolor = "#FF0000"
|
||||||
minetest.chat_send_all(
|
if result == true then
|
||||||
core.colorize("#00FF00", "[E-URN]").." "..cause
|
titlecolor = "#00FF00"
|
||||||
)
|
modEUrn.doSave()
|
||||||
else
|
end
|
||||||
minetest.chat_send_player(
|
minetest.chat_send_all(
|
||||||
playername,
|
core.colorize(titlecolor, "[E-URN]").." "..cause
|
||||||
core.colorize("#FF0000", "[E-URN]").." "..cause
|
)
|
||||||
)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Add table
Reference in a new issue