fixed baseTerrain can differ from getBaseTerrain (#3710)

This commit is contained in:
GGGuenni 2021-03-18 12:19:02 +01:00 committed by GitHub
parent 8472715509
commit 25ef92f3eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,6 +192,7 @@ class MapGenerator(val ruleset: Ruleset) {
elevation <= 0.7 -> tile.baseTerrain = Constants.hill
elevation <= 1.0 -> tile.baseTerrain = Constants.mountain
}
tile.setTerrainTransients()
}
}
@ -230,6 +231,7 @@ class MapGenerator(val ruleset: Ruleset) {
Constants.lakes
}
}
tile.setTerrainTransients()
continue
}
@ -246,6 +248,7 @@ class MapGenerator(val ruleset: Ruleset) {
tile.baseTerrain = ruleset.terrains.keys.first()
println("Temperature: $temperature, humidity: $humidity")
}
tile.setTerrainTransients()
}
}