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:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user