Choosing of Erekir launch sector based on loadout cost

This commit is contained in:
Anuken
2025-09-03 16:28:50 -04:00
parent ac937ce910
commit 59f8f5cd11
4 changed files with 39 additions and 18 deletions

View File

@@ -97,7 +97,7 @@ public class SerpuloPlanetGenerator extends PlanetGenerator{
}
@Override
public Sector findLaunchCandidate(Sector destination, Sector selected){
public @Nullable Sector findLaunchCandidate(Sector destination, @Nullable Sector selected){
if(destination.preset == null || !destination.preset.requireUnlock){
if(selected != null && selected.isNear(destination) && allowNumberedLaunch(selected)){
return selected;