You've already forked ComfyFactorio
mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-07-15 01:04:17 +02:00
Fix stateful reset
This commit is contained in:
@ -1012,7 +1012,7 @@ local function apply_startup_settings(settings)
|
|||||||
local time_to_reset = (current_date - converted_stored_date)
|
local time_to_reset = (current_date - converted_stored_date)
|
||||||
this.time_to_reset = this.reset_after - time_to_reset
|
this.time_to_reset = this.reset_after - time_to_reset
|
||||||
|
|
||||||
if time_to_reset and time_to_reset > this.reset_after then
|
if time_to_reset and time_to_reset >= this.reset_after then
|
||||||
if server_name_matches then
|
if server_name_matches then
|
||||||
Server.set_data(dataset, dataset_key_previous, settings)
|
Server.set_data(dataset, dataset_key_previous, settings)
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user