From 4565e50d370b31d6159db66b7ddcbeefbbd2493f Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 21 Jul 2023 19:49:48 -0400 Subject: [PATCH] Fix NRE --- NewHorizons/Builder/Props/TornadoBuilder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NewHorizons/Builder/Props/TornadoBuilder.cs b/NewHorizons/Builder/Props/TornadoBuilder.cs index 8f4d1827..c2d29093 100644 --- a/NewHorizons/Builder/Props/TornadoBuilder.cs +++ b/NewHorizons/Builder/Props/TornadoBuilder.cs @@ -172,7 +172,7 @@ namespace NewHorizons.Builder.Props if (info.hazardType != null || info.firstContactDamageType != null) { - HazardVolumeBuilder.AddHazardVolume(fluidGO.gameObject, sector, planetGO.GetAttachedOWRigidbody(), info.hazardType, info.firstContactDamageType, info.firstContactDamage, info.damagePerSecond); + HazardVolumeBuilder.AddHazardVolume(fluidGO.gameObject, sector, planetGO.GetComponent(), info.hazardType, info.firstContactDamageType, info.firstContactDamage, info.damagePerSecond); } soundGO.SetActive(true); @@ -232,7 +232,7 @@ namespace NewHorizons.Builder.Props if (info.hazardType != null || info.firstContactDamageType != null) { - HazardVolumeBuilder.AddHazardVolume(fluidVolume.gameObject, sector, planetGO.GetAttachedOWRigidbody(), info.hazardType, info.firstContactDamageType, info.firstContactDamage, info.damagePerSecond); + HazardVolumeBuilder.AddHazardVolume(fluidVolume.gameObject, sector, planetGO.GetComponent(), info.hazardType, info.firstContactDamageType, info.firstContactDamage, info.damagePerSecond); } hurricaneGO.SetActive(true);