Skip to content

Commit

Permalink
Set water to use Layer util
Browse files Browse the repository at this point in the history
  • Loading branch information
xen-42 committed Mar 24, 2023
1 parent c252112 commit df41617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NewHorizons/Builder/Body/WaterBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static RadialFluidVolume Make(GameObject planetGO, Sector sector, OWRigid
waterGO.transform.localScale = new Vector3(waterSize, waterSize, waterSize);

// Don't ignore sun when not under clouds
waterGO.layer = 0;
waterGO.layer = Layer.Default;
Delay.FireOnNextUpdate(() => { if (planetGO.FindChild("Sector/SunOverride") != null) waterGO.layer = Layer.IgnoreSun; });

TessellatedSphereRenderer TSR = waterGO.AddComponent<TessellatedSphereRenderer>();
Expand Down

0 comments on commit df41617

Please sign in to comment.