From 18e0d25051c0fa8c42cc747378f98e6000325093 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Thu, 29 Jun 2023 13:21:09 +0200 Subject: [PATCH] Factorio: fix resync not reconciling divergent history --- worlds/factorio/data/mod_template/control.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worlds/factorio/data/mod_template/control.lua b/worlds/factorio/data/mod_template/control.lua index 4ecfdb4630cf..8ce0b45a5f67 100644 --- a/worlds/factorio/data/mod_template/control.lua +++ b/worlds/factorio/data/mod_template/control.lua @@ -673,7 +673,7 @@ commands.add_command("ap-get-technology", "Grant a technology, used by the Archi end return elseif progressive_technologies[item_name] ~= nil then - if global.index_sync[index] == nil then -- not yet received prog item + if global.index_sync[index] ~= item_name then -- not yet received prog item global.index_sync[index] = item_name local tech_stack = progressive_technologies[item_name] for _, item_name in ipairs(tech_stack) do @@ -697,7 +697,7 @@ commands.add_command("ap-get-technology", "Grant a technology, used by the Archi end end elseif TRAP_TABLE[item_name] ~= nil then - if global.index_sync[index] == nil then -- not yet received trap + if global.index_sync[index] ~= item_name then -- not yet received trap global.index_sync[index] = item_name game.print({"", "Received ", item_name, " from ", source}) TRAP_TABLE[item_name]()