mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-08-08 03:56:21 -07:00
CommonClient: Ignore invalid deathlink packets (#6376)
This commit is contained in:
+6
-3
@@ -1092,9 +1092,12 @@ async def process_server_cmd(ctx: CommonContext, args: dict):
|
||||
|
||||
elif cmd == "Bounced":
|
||||
tags = args.get("tags", [])
|
||||
# we can skip checking "DeathLink" in ctx.tags, as otherwise we wouldn't have been send this
|
||||
if "DeathLink" in tags and ctx.last_death_link != args["data"]["time"]:
|
||||
ctx.on_deathlink(args["data"])
|
||||
# we can skip checking "DeathLink" in ctx.tags, as otherwise we wouldn't have been sent this
|
||||
if "DeathLink" in tags:
|
||||
data = args.get("data", {})
|
||||
time = data.get("time")
|
||||
if time is not None and ctx.last_death_link != time:
|
||||
ctx.on_deathlink(args["data"])
|
||||
|
||||
elif cmd == "Retrieved":
|
||||
ctx.stored_data.update(args["keys"])
|
||||
|
||||
Reference in New Issue
Block a user