mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
only find skybox if we need to destroy it
This commit is contained in:
parent
551eeddfb9
commit
9717da115e
@ -10,11 +10,9 @@ namespace NewHorizons.Handlers
|
||||
{
|
||||
public static void LoadSystem(NewHorizonsSystem system)
|
||||
{
|
||||
var skybox = SearchUtilities.Find("Skybox/Starfield");
|
||||
|
||||
if (system.Config.Skybox?.destroyStarField ?? false)
|
||||
{
|
||||
Object.Destroy(skybox);
|
||||
Object.Destroy(SearchUtilities.Find("Skybox/Starfield"));
|
||||
}
|
||||
|
||||
if (system.Config.Skybox?.rightPath != null ||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user