From 086757a46c386de56c71ae99811e7884f7567a3c Mon Sep 17 00:00:00 2001 From: Nick Date: Mon, 25 Mar 2024 13:19:51 -0400 Subject: [PATCH] Actually account for it being in the volume or not --- NewHorizons/Handlers/PlayerSpawnHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NewHorizons/Handlers/PlayerSpawnHandler.cs b/NewHorizons/Handlers/PlayerSpawnHandler.cs index 4a569ec3..03b0caba 100644 --- a/NewHorizons/Handlers/PlayerSpawnHandler.cs +++ b/NewHorizons/Handlers/PlayerSpawnHandler.cs @@ -123,7 +123,7 @@ namespace NewHorizons.Handlers var shipDetector2 = Locator.GetShipDetector().GetComponent(); foreach (var volume in SpawnPointBuilder.ShipSpawn.GetAttachedOWRigidbody().GetComponentsInChildren()) { - if (volume.GetOWTriggerVolume().GetDistanceToBoundary(ship.transform.position) <= 0) + if (volume.GetOWTriggerVolume().GetPenetrationDistance(ship.transform.position) > 0) { // Add ship to volume // If it's already tracking it it will complain here but thats fine