1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2024-12-30 23:17:53 +02:00

Fix stateful reset

This commit is contained in:
Gerkiz 2024-03-22 17:31:36 +01:00
parent 4bfc4e6855
commit 56cc74f6b1

View File

@ -1012,7 +1012,7 @@ local function apply_startup_settings(settings)
local time_to_reset = (current_date - converted_stored_date)
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
Server.set_data(dataset, dataset_key_previous, settings)
end