From 676fc3672d31e0e53ddc9311d187f703f8000ed6 Mon Sep 17 00:00:00 2001 From: xen-42 Date: Wed, 2 Oct 2024 22:13:24 -0400 Subject: [PATCH] Fix #940 --- NewHorizons/Builder/Props/DetailBuilder.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NewHorizons/Builder/Props/DetailBuilder.cs b/NewHorizons/Builder/Props/DetailBuilder.cs index 89d0887b..66a4c9de 100644 --- a/NewHorizons/Builder/Props/DetailBuilder.cs +++ b/NewHorizons/Builder/Props/DetailBuilder.cs @@ -67,6 +67,8 @@ namespace NewHorizons.Builder.Props /// public static GameObject Make(GameObject planetGO, Sector sector, IModBehaviour mod, DetailInfo info) { + if (sector == null) info.keepLoaded = true; + if (info.assetBundle != null) { // Shouldn't happen @@ -98,6 +100,8 @@ namespace NewHorizons.Builder.Props { if (prefab == null) return null; + if (sector == null) detail.keepLoaded = true; + GameObject prop; bool isItem; bool invalidComponentFound = false;