fixed missing arg in constructor

This commit is contained in:
CWX
2025-01-15 17:13:21 +00:00
parent 65562a015e
commit 863364a2ef
+4 -2
View File
@@ -54,6 +54,7 @@ public class BotWeaponGenerator
LocalisationService localisationService,
RepairService repairService,
ICloner cloner,
ConfigServer configServer,
IEnumerable<IInventoryMagGen> 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<BotConfig>();
_pmcConfig = _configServer.GetConfig<PmcConfig>();
_repairConfig = _configServer.GetConfig<RepairConfig>();