fix(candy-survival): ensure Ghost mode button is always visible on HUD and syncs correctly on player load

This commit is contained in:
2026-07-08 16:32:30 +08:00
parent c5f691b861
commit 8410679890
2 changed files with 12 additions and 2 deletions
@@ -632,6 +632,9 @@ func sync_state_to_player(peer_id: int) -> void:
# Sync Mekton's current face color
if mekton_node and mekton_node.has_method("set_face_color_rpc"):
mekton_node.rpc_id(peer_id, "set_face_color_rpc", current_face)
# Sync Ghost inventory to make the HUD button visible on player load
_update_special_inventory_for_ghosts(peer_id)
# Sync all players' candy stack heights and colors
for pid in player_candy_colors.keys():