From 999a88c4023665c5ff65b44df62b975d6f8e0996 Mon Sep 17 00:00:00 2001 From: Chris Bell Date: Sat, 28 Dec 2024 21:43:16 -0600 Subject: [PATCH] reparent stuff fixed --- assets/core/ships/ship_script.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/core/ships/ship_script.gd b/assets/core/ships/ship_script.gd index bea2ab9..e8380a8 100644 --- a/assets/core/ships/ship_script.gd +++ b/assets/core/ships/ship_script.gd @@ -107,6 +107,7 @@ func remove_piloting_player(): # When a player enters the ship's detection area func _on_player_entered(body): if body is Player and body.get_parent() != self: + if !body.is_network_authority: return body.call_deferred("reparent", self, true) body.ship_entered(self) print("Player entered the ship area.") @@ -114,6 +115,7 @@ func _on_player_entered(body): # When a player exits the ship's detection area func _on_player_exited(body): if body is Player and body.get_parent() != get_node("/root/DevLevel/"): + if !body.is_network_authority: return body.call_deferred("reparent", get_node("/root/DevLevel/"), true) body.ship_exited() print("Player exited the ship area.")