1
Fork 0
mirror of https://github.com/Steffo99/nanogolf.git synced 2024-11-24 17:14:19 +00:00

Fix a couple things

This commit is contained in:
Steffo 2024-03-12 16:37:41 +01:00
parent c73a79c225
commit 93fedaa606
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -46,7 +46,7 @@ func _on_multiplayer_peer_connected(peer_id: int) -> void:
playernode.rpc_query_name.rpc_id(playernode.get_multiplayer_authority())
playernode.rpc_query_color.rpc_id(playernode.get_multiplayer_authority())
peer_dir.rpc_create_peernode.rpc(peer_id)
rpc_set_phase.rpc_id(peer_id, phase)
phase_tracker.rpc_set_phase.rpc_id(peer_id, phase_tracker.phase)
func _on_multiplayer_peer_disconnected(peer_id: int) -> void:
Log.peer(self, "Peer disconnected: %d" % peer_id)
@ -91,4 +91,4 @@ func _on_playerdir_playernode_possessed(old: int, new: int, playernode: PlayerNo
func _on_main_start_confirmed() -> void:
if multiplayer.is_server():
rpc_set_phase.rpc(Phase.PLAYING)
phase_tracker.rpc_set_phase.rpc(PhaseTracker.Phase.PLAYING)