From 45f85d9c38c5bc62a6adaa60c659b1fb2b9fcee0 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Mon, 18 May 2020 23:42:40 +0300 Subject: [PATCH] Fixed Manhattan Project being inversely affected by nuclear weapons disabling --- core/src/com/unciv/models/ruleset/tech/Technology.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/models/ruleset/tech/Technology.kt b/core/src/com/unciv/models/ruleset/tech/Technology.kt index 62d15f7631..749af27a47 100644 --- a/core/src/com/unciv/models/ruleset/tech/Technology.kt +++ b/core/src/com/unciv/models/ruleset/tech/Technology.kt @@ -74,8 +74,8 @@ class Technology { val replacedBuildings = enabledBuildings.mapNotNull { it.replaces } enabledBuildings = enabledBuildings.filter { it.name !in replacedBuildings } - if (civInfo.gameInfo.gameParameters.nuclearWeaponsEnabled) - enabledBuildings=enabledBuildings.filterNot { it.name=="Manhattan Project" } + if (!civInfo.gameInfo.gameParameters.nuclearWeaponsEnabled) + enabledBuildings = enabledBuildings.filterNot { it.name == "Manhattan Project" } return enabledBuildings }