CommonClient: implement check_locations to send missing locations only (#4484)

Co-authored-by: Scipio Wright <scipiowright@gmail.com>
This commit is contained in:
Fabian Dill
2025-01-19 00:26:42 +01:00
committed by GitHub
parent 005a143e3e
commit 1c9409cac9
3 changed files with 10 additions and 4 deletions

View File

@@ -464,7 +464,7 @@ async def track_locations(ctx, roomid, roomdata) -> bool:
snes_logger.info(f"Discarding recent {len(new_locations)} checks as ROM Status has changed.")
return False
else:
await ctx.send_msgs([{"cmd": 'LocationChecks', "locations": new_locations}])
await ctx.check_locations(new_locations)
await snes_flush_writes(ctx)
return True