mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Should make "worth a shot" achievement work again
This commit is contained in:
parent
711bf173c7
commit
b130b97504
@ -69,7 +69,9 @@ namespace NewHorizons.Utility
|
||||
|
||||
public static bool CheckShipOutersideSolarSystem(PlayerState __instance, ref bool __result)
|
||||
{
|
||||
__result = false;
|
||||
Transform sunTransform = Locator.GetSunTransform();
|
||||
OWRigidbody shipBody = Locator.GetShipBody();
|
||||
__result = sunTransform != null && shipBody != null && (sunTransform.position - shipBody.transform.position).sqrMagnitude > Main.FurthestOrbit * Main.FurthestOrbit * 4f;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user