nevermind even that doesn't work

This commit is contained in:
Teatov 2025-02-13 20:42:11 +10:00
parent 904e2b2ccd
commit e1c073adcb

View File

@ -129,7 +129,7 @@ func _remove_player(peer_id: int) -> void:
func _register_player(player_info: Dictionary) -> void:
var peer_id := multiplayer.get_remote_sender_id()
print("Registering player ", peer_id, " ", player_info)
if peer_id == 1:
if peer_id == 1 and !player_info["name"]:
print("Skipping registering the host")
return
players[peer_id] = player_info