mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
restore sanity check for exported technologies
This commit is contained in:
@@ -108,7 +108,7 @@ async def game_watcher(ctx: FactorioContext):
|
|||||||
with open(bridge_file) as f:
|
with open(bridge_file) as f:
|
||||||
data = json.load(f)
|
data = json.load(f)
|
||||||
research_data = data["research_done"]
|
research_data = data["research_done"]
|
||||||
research_data = {int(tech_name.split("-")[1]) for tech_name in research_data}
|
research_data = {int(tech_name.split("-")[1]) for tech_name in research_data if tech_name.startswith("ap-")}
|
||||||
if ctx.locations_checked != research_data:
|
if ctx.locations_checked != research_data:
|
||||||
bridge_logger.info(f"New researches done: "
|
bridge_logger.info(f"New researches done: "
|
||||||
f"{[lookup_id_to_name[rid] for rid in research_data - ctx.locations_checked]}")
|
f"{[lookup_id_to_name[rid] for rid in research_data - ctx.locations_checked]}")
|
||||||
|
Reference in New Issue
Block a user