From 2c42837c25c242d328054f7d61a9a664abc841da Mon Sep 17 00:00:00 2001 From: Chomp Date: Mon, 24 Feb 2025 17:42:53 +0000 Subject: [PATCH] Fixed bad logic in `ChooseModToPutIntoSlot` --- Libraries/Core/Generators/BotEquipmentModGenerator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/Core/Generators/BotEquipmentModGenerator.cs b/Libraries/Core/Generators/BotEquipmentModGenerator.cs index c154be28..308d4ce8 100644 --- a/Libraries/Core/Generators/BotEquipmentModGenerator.cs +++ b/Libraries/Core/Generators/BotEquipmentModGenerator.cs @@ -998,7 +998,7 @@ public class BotEquipmentModGenerator( if (request.ModSlot == "mod_gas_block") { - if (request.WeaponStats.HasOptic ?? (false && modPool.Count > 1)) + if ((request.WeaponStats.HasOptic ?? false) && modPool.Count > 1) { // Attempt to limit modpool to low profile gas blocks when weapon has an optic var onlyLowProfileGasBlocks = modPool.Where( @@ -1010,7 +1010,7 @@ public class BotEquipmentModGenerator( modPool = onlyLowProfileGasBlocks.ToHashSet(); } } - else if (request.WeaponStats.HasRearIronSight ?? (false && modPool.Count() > 1)) + else if ((request.WeaponStats.HasRearIronSight ?? false) && modPool.Count > 1) { // Attempt to limit modpool to high profile gas blocks when weapon has rear iron sight + no front iron sight var onlyHighProfileGasBlocks = modPool.Where(