feat: Implement core multiplayer lobby system with room management, player profiles, and game settings.
This commit is contained in:
@@ -293,7 +293,7 @@ func set_player_name(new_name: String) -> void:
|
||||
break
|
||||
|
||||
# Sync to all peers if connected
|
||||
if multiplayer.has_multiplayer_peer():
|
||||
if multiplayer.has_multiplayer_peer() and multiplayer.multiplayer_peer.get_connection_status() == MultiplayerPeer.CONNECTION_CONNECTED:
|
||||
rpc("sync_player_name", my_id, new_name)
|
||||
|
||||
emit_signal("player_list_changed")
|
||||
|
||||
Reference in New Issue
Block a user