mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fix NRE
This commit is contained in:
parent
72d683d4db
commit
4565e50d37
@ -172,7 +172,7 @@ namespace NewHorizons.Builder.Props
|
|||||||
|
|
||||||
if (info.hazardType != null || info.firstContactDamageType != null)
|
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<OWRigidbody>(), info.hazardType, info.firstContactDamageType, info.firstContactDamage, info.damagePerSecond);
|
||||||
}
|
}
|
||||||
|
|
||||||
soundGO.SetActive(true);
|
soundGO.SetActive(true);
|
||||||
@ -232,7 +232,7 @@ namespace NewHorizons.Builder.Props
|
|||||||
|
|
||||||
if (info.hazardType != null || info.firstContactDamageType != null)
|
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<OWRigidbody>(), info.hazardType, info.firstContactDamageType, info.firstContactDamage, info.damagePerSecond);
|
||||||
}
|
}
|
||||||
|
|
||||||
hurricaneGO.SetActive(true);
|
hurricaneGO.SetActive(true);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user