mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Use save data directly for checking facts
This commit is contained in:
parent
b8178127f2
commit
918b093ea3
@ -114,10 +114,8 @@ namespace NewHorizons.Handlers
|
||||
|
||||
public static bool KnowsFact(string fact)
|
||||
{
|
||||
// Works normally in the main system, else check save data directly
|
||||
var shipLogManager = Locator.GetShipLogManager();
|
||||
if (Main.Instance.CurrentStarSystem == "SolarSystem" && shipLogManager != null) return shipLogManager.IsFactRevealed(fact);
|
||||
else return PlayerData.GetShipLogFactSave(fact)?.revealOrder > -1;
|
||||
// Use save data directly so stuff works between systems
|
||||
return PlayerData.GetShipLogFactSave(fact)?.revealOrder > -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user