Fixed FilterModsByBlacklist not filtering before returning results

This commit is contained in:
Chomp
2025-06-30 14:11:20 +01:00
parent 62a9cc28d5
commit 6baf8a9118
2 changed files with 4 additions and 3 deletions
@@ -187,7 +187,8 @@ public class BotEquipmentModGenerator(
);
switch (plateSlotFilteringOutcome.Result)
{
case Result.UNKNOWN_FAILURE or Result.NO_DEFAULT_FILTER:
case Result.UNKNOWN_FAILURE
or Result.NO_DEFAULT_FILTER:
if (_logger.IsLogEnabled(LogLevel.Debug))
{
_logger.Debug(
@@ -1932,7 +1933,7 @@ public class BotEquipmentModGenerator(
// Filter out blacklisted tpls
result.ExceptWith(blacklist);
return modTplPool;
return result;
}
/// <summary>
@@ -197,7 +197,7 @@ public class BotWeaponGenerator(
},
ModLimits = modLimits,
WeaponStats = new WeaponStats(),
ConflictingItemTpls = new HashSet<string>(),
ConflictingItemTpls = [],
};
weaponWithModsArray = _botEquipmentModGenerator.GenerateModsForWeapon(
sessionId,