mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 15:04:52 +09:00
Fix swapped arguments to restore_position in download_inventory (#1095)
The path for a download that comes back with no player data called restore_position(record, player), but the function takes (player, record). That raised an error, so the download was never marked finished and the player waited for the timeout dialog. Co-authored-by: ILLISIS <jayson.harris01@gmail.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 file changed
+1
-1
@@ -36,7 +36,7 @@ local function download_inventory(player_name, data, number, total)
|
||||
ensure_character(player)
|
||||
|
||||
-- Restore player position and driving state
|
||||
restore_position(record, player)
|
||||
restore_position(player, record)
|
||||
|
||||
script_data.active_downloads[player_name] = nil
|
||||
player_record.dirty = player.connected
|
||||
|
||||
Reference in new issue
Block a user