diff --git a/Core/Generators/BotWeaponGenerator.cs b/Core/Generators/BotWeaponGenerator.cs index b60b6048..c71f6509 100644 --- a/Core/Generators/BotWeaponGenerator.cs +++ b/Core/Generators/BotWeaponGenerator.cs @@ -54,6 +54,7 @@ public class BotWeaponGenerator LocalisationService localisationService, RepairService repairService, ICloner cloner, + ConfigServer configServer, IEnumerable inventoryMagGenComponents ) { @@ -70,7 +71,8 @@ public class BotWeaponGenerator _localisationService = localisationService; _repairService = repairService; _cloner = cloner; - + _configServer = configServer; + inventoryMagGenComponents.ToList() .Sort( (a, b) => @@ -78,7 +80,7 @@ public class BotWeaponGenerator b.GetPriority() ); _inventoryMagGenComponents = inventoryMagGenComponents.ToList(); - + _botConfig = _configServer.GetConfig(); _pmcConfig = _configServer.GetConfig(); _repairConfig = _configServer.GetConfig();