From 55d28cd24236c4ab0cc69c837fe3b9a587ff753c Mon Sep 17 00:00:00 2001 From: Gary Steven K Date: Sun, 15 Dec 2024 22:43:03 -0500 Subject: [PATCH] update --- assets/core/interactables/ship-helm/ship_helm.gd | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/assets/core/interactables/ship-helm/ship_helm.gd b/assets/core/interactables/ship-helm/ship_helm.gd index cfc0c3c..cf8a59a 100644 --- a/assets/core/interactables/ship-helm/ship_helm.gd +++ b/assets/core/interactables/ship-helm/ship_helm.gd @@ -15,13 +15,14 @@ func _ready(): func interact(): - if !parent_ship.ship_is_piloted: - player_reference.set_is_piloting(true) - parent_ship.ship_is_piloted = true - - elif parent_ship.ship_is_piloted: - player_reference.set_is_piloting(false) - parent_ship.ship_is_piloted = false + if player_reference.is_network_authority: + if !parent_ship.ship_is_piloted: + player_reference.set_is_piloting(true) + parent_ship.ship_is_piloted = true + + elif parent_ship.ship_is_piloted: + player_reference.set_is_piloting(false) + parent_ship.ship_is_piloted = false parent_ship._sync_piloting_state()