mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
After enabling exiting via warp drive, only enable if we actually have a system
This commit is contained in:
parent
aeb08f1480
commit
d2f88ed9ad
@ -211,7 +211,7 @@ namespace NewHorizons.Components.ShipLog
|
||||
{
|
||||
if (_starSystemCards.Count == 0)
|
||||
{
|
||||
NHLogger.LogWarning("Showing star chart mode when there are no avaialble systems");
|
||||
NHLogger.LogWarning("Showing star chart mode when there are no available systems");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@ -156,15 +156,20 @@ namespace NewHorizons.Handlers
|
||||
_canExitViaWarpDrive = true;
|
||||
if (!Main.HasWarpDrive)
|
||||
{
|
||||
Main.Instance.EnableWarpDrive();
|
||||
var flagActuallyAddedACard = false;
|
||||
// Add all cards that now work
|
||||
foreach (var starSystem in Main.SystemDict.Keys)
|
||||
{
|
||||
if (CanWarpToSystem(starSystem))
|
||||
{
|
||||
ShipLogStarChartMode.AddSystemCard(starSystem);
|
||||
flagActuallyAddedACard = true;
|
||||
}
|
||||
}
|
||||
if (flagActuallyAddedACard)
|
||||
{
|
||||
Main.Instance.EnableWarpDrive();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user