From 133e3f72f9fc5ddd6607a893bf82e6287a723b66 Mon Sep 17 00:00:00 2001 From: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Date: Tue, 29 Mar 2022 19:57:25 +0200 Subject: [PATCH] Fix enabled buildings not displaying in games without nukes (#6454) --- core/src/com/unciv/models/ruleset/tech/Technology.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/models/ruleset/tech/Technology.kt b/core/src/com/unciv/models/ruleset/tech/Technology.kt index c16c5f5703..6ef6336a84 100644 --- a/core/src/com/unciv/models/ruleset/tech/Technology.kt +++ b/core/src/com/unciv/models/ruleset/tech/Technology.kt @@ -119,7 +119,7 @@ class Technology: RulesetObject() { .filter { predicate(it) // expected to be the most selective, thus tested first && (it.uniqueTo == civInfo.civName || it.uniqueTo==null && civInfo.getEquivalentBuilding(it) == it) - && (nuclearWeaponsEnabled || it.hasUnique(UniqueType.EnablesNuclearWeapons)) + && (nuclearWeaponsEnabled || !it.hasUnique(UniqueType.EnablesNuclearWeapons)) && (religionEnabled || !it.hasUnique(UniqueType.HiddenWithoutReligion)) && !it.hasUnique(UniqueType.HiddenFromCivilopedia) }