mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-18 03:21:47 +02:00
Fix restart state not reset when fails to start sceanrio.
When a scenario fails to start the restarting state was not reset, which prevented another restart from being started. We now clear the restarting flag.
This commit is contained in:
parent
f3f26b5c44
commit
7f8efca5a5
@ -34,6 +34,7 @@ callback =
|
|||||||
if state == 0 then
|
if state == 0 then
|
||||||
Server.start_scenario(data.scenario_name)
|
Server.start_scenario(data.scenario_name)
|
||||||
double_print('restarting')
|
double_print('restarting')
|
||||||
|
global_data.restarting = nil
|
||||||
return
|
return
|
||||||
elseif state == 1 then
|
elseif state == 1 then
|
||||||
Popup.all('\nServer restarting!\nInitiated by ' .. data.name .. '\n')
|
Popup.all('\nServer restarting!\nInitiated by ' .. data.name .. '\n')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user