From 12a50df39f2023b44f3d6be73539cdafeef6fe78 Mon Sep 17 00:00:00 2001 From: "Nick J. Connors" Date: Sat, 15 Jan 2022 14:24:42 -0500 Subject: [PATCH] Update ShipWarpController.cs --- NewHorizons/Components/ShipWarpController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NewHorizons/Components/ShipWarpController.cs b/NewHorizons/Components/ShipWarpController.cs index 3d93cef6..aa17b48b 100644 --- a/NewHorizons/Components/ShipWarpController.cs +++ b/NewHorizons/Components/ShipWarpController.cs @@ -167,14 +167,14 @@ namespace NewHorizons.Components Player.getResources()._currentHealth = 100f; Locator.GetDeathManager()._invincible = false; - // For some reason warping in with a suit means you suffocate while in the ship + // For some reason warping into the ship makes you suffocate while in the ship if(_wearingSuit) Player.getResources().OnSuitUp(); var o2Volume = Locator.GetShipBody().GetComponent(); var atmoVolume = GameObject.Find("Ship_Body/Volumes/ShipAtmosphereVolume").GetComponent(); - //Player.getResources()._oxygenDetector.AddVolume(o2Volume); Player.getResources()._cameraFluidDetector.AddVolume(atmoVolume); - //Player.getResources()._fluidDetector.AddVolume(atmoVolume); + Player.getResources()._cameraFluidDetector.OnVolumeAdded(atmoVolume); + Player.getResources()._cameraFluidDetector.OnVolumeActivated(atmoVolume); GlobalMessenger.FireEvent("EnterShip"); PlayerState.OnEnterShip();