A couple of features for better planet modding (#8558)

* Planet item whitelist

* allowLaunchToNumbered for planets

* Update core/src/mindustry/type/Planet.java

* Update core/src/mindustry/type/Planet.java

---------

Co-authored-by: Anuken <arnukren@gmail.com>
This commit is contained in:
Slotterleet
2023-05-07 03:49:40 +02:00
committed by GitHub
parent cc17962d93
commit 52ec9f4296
4 changed files with 17 additions and 8 deletions

View File

@@ -55,7 +55,7 @@ public abstract class PlanetGenerator extends BasicGenerator implements HexMeshe
/** @return whether to allow landing on the specified procedural sector */
public boolean allowLanding(Sector sector){
return sector.hasBase() || sector.near().contains(Sector::hasBase);
return sector.planet.allowLaunchToNumbered && (sector.hasBase() || sector.near().contains(Sector::hasBase));
}
public void addWeather(Sector sector, Rules rules){