From 580c8ba49326fa700d15a3dd79ff488fa55cff90 Mon Sep 17 00:00:00 2001 From: ILLISIS <92364928+ILLISIS@users.noreply.github.com> Date: Fri, 16 Oct 2026 22:32:41 +1100 Subject: [PATCH] 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 Co-authored-by: Claude Opus 5.5 (1M context) --- plugins/player_sync/module/download_inventory.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/player_sync/module/download_inventory.lua b/plugins/player_sync/module/download_inventory.lua index b7cd55ed..44ddaec0 100644 --- a/plugins/player_sync/module/download_inventory.lua +++ b/plugins/player_sync/module/download_inventory.lua @@ -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