mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-23 03:23:17 -04:00
"Abundant resources" with mods with loads of resources no longer crash
This commit is contained in:
parent
db6bfa8bfe
commit
86522371b9
@ -28,6 +28,7 @@ object MapRegionResources {
|
||||
baseImpact: Int = 0, randomImpact: Int = 0, majorDeposit: Boolean = false
|
||||
): Map<TileResource, Int> {
|
||||
if (tileList.none() || resourceOptions.isEmpty()) return mapOf()
|
||||
if (frequency == 0) return mapOf()
|
||||
val impactType = when (resourceOptions.first().resourceType) {
|
||||
ResourceType.Strategic -> ImpactType.Strategic
|
||||
ResourceType.Bonus -> ImpactType.Bonus
|
||||
|
Loading…
x
Reference in New Issue
Block a user