Fixed a bug where excess food would not be converted to production for settlers (#4221)

This commit is contained in:
Xander Lenstra 2021-06-21 10:00:47 +02:00 committed by GitHub
parent 837d78db21
commit 4586e44ba6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,7 +251,10 @@ class BaseUnit : INamed, IConstruction {
"Military", "military units" -> unitType.isMilitary()
// Deprecated as of 3.15.2
"military water" -> unitType.isMilitary() && unitType.isWaterUnit()
else -> false
else -> {
if (uniques.contains(filter)) return true
return false
}
}
}