diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-10-05 12:06:00 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-10-05 12:06:00 -0400 |
commit | ff125bf97e26eecff6e7cbf89f55ffcf6c222fce (patch) | |
tree | 69d5d4f1259c1aa79c6d94c60140b7f3669358d6 /apworld | |
parent | 86a92ea239adf0c462009096e91e06c1c121ade2 (diff) | |
download | lingo2-archipelago-ff125bf97e26eecff6e7cbf89f55ffcf6c222fce.tar.gz lingo2-archipelago-ff125bf97e26eecff6e7cbf89f55ffcf6c222fce.tar.bz2 lingo2-archipelago-ff125bf97e26eecff6e7cbf89f55ffcf6c222fce.zip |
Don't resend confirmed checked locations
Diffstat (limited to 'apworld')
-rw-r--r-- | apworld/client/client.gd | 2 | ||||
-rw-r--r-- | apworld/client/manager.gd | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/apworld/client/client.gd b/apworld/client/client.gd index e25ad4b..a0abee9 100644 --- a/apworld/client/client.gd +++ b/apworld/client/client.gd | |||
@@ -108,7 +108,7 @@ func _on_web_socket_server_message_received(_peer_id: int, packet: String) -> vo | |||
108 | 108 | ||
109 | _checked_locations = [] | 109 | _checked_locations = [] |
110 | for location in message["checked_locations"]: | 110 | for location in message["checked_locations"]: |
111 | _checked_locations.append(int(message["checked_locations"])) | 111 | _checked_locations.append(int(location)) |
112 | 112 | ||
113 | client_connected.emit(_slot_data) | 113 | client_connected.emit(_slot_data) |
114 | 114 | ||
diff --git a/apworld/client/manager.gd b/apworld/client/manager.gd index 0d5a5aa..b13c1bd 100644 --- a/apworld/client/manager.gd +++ b/apworld/client/manager.gd | |||
@@ -503,6 +503,9 @@ func start_batching_locations(): | |||
503 | 503 | ||
504 | 504 | ||
505 | func send_location(loc_id): | 505 | func send_location(loc_id): |
506 | if client._checked_locations.has(loc_id): | ||
507 | return | ||
508 | |||
506 | if _batch_locations: | 509 | if _batch_locations: |
507 | _held_locations.append(loc_id) | 510 | _held_locations.append(loc_id) |
508 | else: | 511 | else: |