mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
null check
This commit is contained in:
parent
37bd3263f8
commit
5d37898ce1
@ -381,6 +381,7 @@ namespace NewHorizons.Builder.Props
|
||||
}
|
||||
|
||||
slideCollectionContainer.slideCollection = slideCollection;
|
||||
slideCollectionContainer._playWithShipLogFacts = Array.Empty<string>();
|
||||
|
||||
StreamingHandler.SetUpStreaming(projectorObj, sector);
|
||||
|
||||
|
||||
@ -24,10 +24,13 @@ public class NHSlideCollectionContainer : SlideCollectionContainer
|
||||
__instance._changeSlidesAllowed = true;
|
||||
__instance._initialized = true;
|
||||
__instance._slideCollection.isVision = __instance._owningItem == null;
|
||||
foreach (var factID in __instance._playWithShipLogFacts)
|
||||
if (__instance._playWithShipLogFacts != null)
|
||||
{
|
||||
var fact = Locator.GetShipLogManager().GetFact(factID);
|
||||
fact?.RegisterSlideCollection(__instance._slideCollection);
|
||||
foreach (var factID in __instance._playWithShipLogFacts)
|
||||
{
|
||||
var fact = Locator.GetShipLogManager().GetFact(factID);
|
||||
fact?.RegisterSlideCollection(__instance._slideCollection);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user