mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 15:04:52 +09:00
player_sync.prefetch_inventory holds a copy sent ahead in active_downloads and finished_downloads, for a player who is offline or doesn't exist on the destination, with the components its first chunk names. Chunk 1 refuses a player who is online, a download in progress, a stream of the same or a newer generation and a finished copy of a newer one; a finished copy of the same generation is replaced. At the acquire reply a copy is used only when the reply is acquired with its generation and its components are the ones the scenario syncs now. The player is then switched to spectator as a download does and the copy is applied, at once or at its last chunk. Otherwise the copy is dropped and the join continues as before. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>