mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-23 03:23:17 -04:00
Add special exception for a strange bug encountered by a player
This commit is contained in:
parent
0beeeaccf2
commit
53ef48402b
@ -319,7 +319,8 @@ class UniqueValidator(val ruleset: Ruleset) {
|
||||
&& param in allNonTypedUniques)
|
||||
continue // This is a filtering param, and the unique it's filtering for actually exists, no problem here!
|
||||
val leastSevereWarning =
|
||||
errorTypesForAcceptableParameters.minByOrNull { it!!.ordinal }!!
|
||||
errorTypesForAcceptableParameters.minByOrNull { it!!.ordinal }
|
||||
if (leastSevereWarning == null) throw Exception("Unique ${unique.text} from mod ${ruleset.name} is acting strangely - please open a bug report")
|
||||
errorList += UniqueComplianceError(param, acceptableParamTypes, leastSevereWarning)
|
||||
}
|
||||
return errorList
|
||||
|
Loading…
x
Reference in New Issue
Block a user