mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 15:43:13 +09:00
Keep local items and character state when replacing the character
With sync_controller on and sync_inventories off, switching to a synced god, ghost or spectator destroyed the local character and its items. Serialize the local items first and place them in the new controller. Logistic requests and the flashlight live on the character, which the download replaces when inventories are synced. Save them with the local controller and restore them when their component is not synced. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
93ead85e5d
commit
905560d17b
2 files changed
+44
-20
No files matched your search
@@ -108,6 +108,7 @@ Sync the items the player holds, the character bonuses and the crafting queue.
|
||||
This covers the character inventories, the god inventory and the items a dead player will respawn with.
|
||||
A spectator holds no items, so the synced items are put into a corpse when the player is a spectator on the instance.
|
||||
A player without a character gets the ingredients of the crafting queue as items instead.
|
||||
With this off and the controller synced, the items the player has on the instance move to the synced controller the same way.
|
||||
|
||||
Defaults to `true`.
|
||||
|
||||
|
||||
Reference in new issue
Block a user