Fix bad merges

This commit is contained in:
xen-42 2025-02-14 22:48:55 -05:00
parent b4e02146e6
commit 65fd7abba7
2 changed files with 3 additions and 4 deletions

View File

@ -11,8 +11,7 @@ namespace NewHorizons.Builder.Body
{ {
public static class HeightMapBuilder public static class HeightMapBuilder
{ {
private static Shader _planetShader; public static Shader PlanetShader;
public static Shader PlanetShader => _planetShader ??= Main.NHAssetBundle.LoadAsset<Shader>("Assets/Shaders/SphereTextureWrapperTriplanar.shader");
// I hate nested functions okay // I hate nested functions okay
private static IModBehaviour _currentMod; private static IModBehaviour _currentMod;

View File

@ -12,8 +12,8 @@ namespace NewHorizons.Builder.Body
public static GameObject Make(GameObject planetGO, Sector sector, ProcGenModule module) public static GameObject Make(GameObject planetGO, Sector sector, ProcGenModule module)
{ {
quantumMaterial ??= SearchUtilities.FindResourceOfTypeAndName<Material>("Rock_QM_EyeRock_mat"); if (quantumMaterial == null) quantumMaterial = SearchUtilities.FindResourceOfTypeAndName<Material>("Rock_QM_EyeRock_mat");
iceMaterial ??= SearchUtilities.FindResourceOfTypeAndName<Material>("Rock_BH_IceSpike_mat"); if (iceMaterial == null) iceMaterial = SearchUtilities.FindResourceOfTypeAndName<Material>("Rock_BH_IceSpike_mat");
var icosphere = new GameObject("Icosphere"); var icosphere = new GameObject("Icosphere");
icosphere.SetActive(false); icosphere.SetActive(false);