diff --git a/NewHorizons/Builder/Atmosphere/FogBuilder.cs b/NewHorizons/Builder/Atmosphere/FogBuilder.cs index 052825d0..5dd67381 100644 --- a/NewHorizons/Builder/Atmosphere/FogBuilder.cs +++ b/NewHorizons/Builder/Atmosphere/FogBuilder.cs @@ -73,6 +73,7 @@ namespace NewHorizons.Builder.Atmosphere fogGO.transform.localScale = Vector3.one * atmo.fogSize; var fog = (SearchUtilities.Find("TimberHearth_DistantProxy", false) ?? SearchUtilities.Find("TimberHearth_DistantProxy(Clone)", false))?.FindChild("Atmosphere_TH/FogSphere"); + if (fog == null) return null; MeshFilter MF = fogGO.AddComponent(); MF.mesh = fog.GetComponent().mesh;