mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-11 11:28:03 +07:00
Don't generate ice if it isn't in the ruleset
This commit is contained in:
parent
5b39b59a19
commit
18a86bf472
@ -465,6 +465,7 @@ class MapGenerator(val ruleset: Ruleset) {
|
||||
* [MapParameters.temperatureExtremeness] as in [applyHumidityAndTemperature]
|
||||
*/
|
||||
private fun spawnIce(tileMap: TileMap) {
|
||||
if (!ruleset.terrains.containsKey(Constants.ice)) return // I can't think of how to make this nicely moddable
|
||||
tileMap.setTransients(ruleset)
|
||||
val temperatureSeed = randomness.RNG.nextInt().toDouble()
|
||||
for (tile in tileMap.values) {
|
||||
|
Loading…
Reference in New Issue
Block a user