mirror of
https://github.com/minetest/minetest.git
synced 2024-12-02 04:23:45 +01:00
/shutdown can't do countdown when using reconnect and/or shutdown message (#7055)
Delay was converted from the param string and not the delay value, thus never using the actual given delay value when used in combination with other string values in the param, in this case reconnect and the shutdown messsage.
This commit is contained in:
parent
858c41b842
commit
f8cc92c190
@ -814,7 +814,7 @@ core.register_chatcommand("shutdown", {
|
|||||||
message = message or ""
|
message = message or ""
|
||||||
|
|
||||||
if delay ~= "" then
|
if delay ~= "" then
|
||||||
delay = tonumber(param) or 0
|
delay = tonumber(delay) or 0
|
||||||
else
|
else
|
||||||
delay = 0
|
delay = 0
|
||||||
core.log("action", name .. " shuts down server")
|
core.log("action", name .. " shuts down server")
|
||||||
|
Loading…
Reference in New Issue
Block a user