mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-11 03:18:18 +07:00
Custom mods with no water or grassland can now work!
This commit is contained in:
parent
ccae026df2
commit
53c919eef9
@ -15,7 +15,7 @@ class MapLandmassGenerator(val randomness: MapGenerationRandomness) {
|
||||
fun generateLand(tileMap: TileMap, ruleset: Ruleset) {
|
||||
if (ruleset.terrains.values.none { it.type == TerrainType.Water }) {
|
||||
for (tile in tileMap.values)
|
||||
tile.baseTerrain = Constants.grassland
|
||||
tile.baseTerrain = ruleset.terrains.keys.first()
|
||||
return
|
||||
}
|
||||
when (tileMap.mapParameters.type) {
|
||||
|
Loading…
Reference in New Issue
Block a user