From 863364a2effa15b50611a504e7326933cc98d665 Mon Sep 17 00:00:00 2001 From: CWX Date: Wed, 15 Jan 2025 17:13:21 +0000 Subject: [PATCH] fixed missing arg in constructor --- Core/Generators/BotWeaponGenerator.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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();