Fixed FilterModsByBlacklist not filtering before returning results
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user