diff options
Diffstat (limited to 'apworld/client')
| -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: |
