mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Map mode position outsider compat
This commit is contained in:
parent
aca6ee2281
commit
08e5fa2876
@ -31,6 +31,19 @@ namespace NewHorizons.Builder.ShipLog
|
||||
foreach (var shipLogAstroObject in currentNav.SelectMany(x => x))
|
||||
{
|
||||
var astroObject = Locator.GetAstroObject(AstroObject.StringIDToAstroObjectName(shipLogAstroObject._id));
|
||||
if (astroObject == null)
|
||||
{
|
||||
// Outsider compat
|
||||
if (shipLogAstroObject._id == "POWER_STATION")
|
||||
{
|
||||
astroObject = GameObject.FindObjectsOfType<AstroObject>().FirstOrDefault(x => x._customName == "Power Station");
|
||||
}
|
||||
else
|
||||
{
|
||||
NHLogger.LogError($"Couldn't find stock (?) astro object [{shipLogAstroObject?._id}]");
|
||||
continue;
|
||||
}
|
||||
}
|
||||
_astroObjectToShipLog[astroObject.gameObject] = shipLogAstroObject;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user