diff --git a/scripts/managers/lobby_manager.gd b/scripts/managers/lobby_manager.gd index 6a95607..a7de8d2 100644 --- a/scripts/managers/lobby_manager.gd +++ b/scripts/managers/lobby_manager.gd @@ -794,7 +794,7 @@ func _on_match_joined(match_id: String) -> void: emit_signal("room_joined", current_room) # Client will request room info when peer connection is established -@rpc("any_peer", "reliable") +@rpc("any_peer", "call_remote", "reliable") func request_room_info(requester_id: int, requester_name: String, requester_character: String, requester_nakama_id: String = "") -> void: """Client requests room info from host, sending their name, character and nakama_id.""" if not multiplayer.is_server(): @@ -829,7 +829,7 @@ func request_room_info(requester_id: int, requester_name: String, requester_char rpc("sync_player_list", players_in_room) emit_signal("player_list_changed") -@rpc("reliable") +@rpc("authority", "call_remote", "reliable") func receive_room_info(room_data: Dictionary, player_list: Array) -> void: """Client receives room info from host.""" current_room = room_data @@ -942,7 +942,7 @@ func start_rematch() -> void: # Start game using existing start_game logic, bypassing ready check start_game(true) -@rpc("reliable") +@rpc("authority", "call_remote", "reliable") func sync_player_list(player_list: Array) -> void: """Sync player list from host to all clients.""" players_in_room = player_list