mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fix #940
This commit is contained in:
parent
6a47777497
commit
676fc3672d
@ -67,6 +67,8 @@ namespace NewHorizons.Builder.Props
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static GameObject Make(GameObject planetGO, Sector sector, IModBehaviour mod, DetailInfo info)
|
public static GameObject Make(GameObject planetGO, Sector sector, IModBehaviour mod, DetailInfo info)
|
||||||
{
|
{
|
||||||
|
if (sector == null) info.keepLoaded = true;
|
||||||
|
|
||||||
if (info.assetBundle != null)
|
if (info.assetBundle != null)
|
||||||
{
|
{
|
||||||
// Shouldn't happen
|
// Shouldn't happen
|
||||||
@ -98,6 +100,8 @@ namespace NewHorizons.Builder.Props
|
|||||||
{
|
{
|
||||||
if (prefab == null) return null;
|
if (prefab == null) return null;
|
||||||
|
|
||||||
|
if (sector == null) detail.keepLoaded = true;
|
||||||
|
|
||||||
GameObject prop;
|
GameObject prop;
|
||||||
bool isItem;
|
bool isItem;
|
||||||
bool invalidComponentFound = false;
|
bool invalidComponentFound = false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user