0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 06:10:44 -05:00

Fixed type errors

This commit is contained in:
Chomp 2024-12-26 23:21:02 +00:00
parent 163e533f6e
commit cde5216b84
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import { BotEquipmentModGenerator } from "@spt/generators/BotEquipmentModGenerator"; import { BotEquipmentModGenerator } from "@spt/generators/BotEquipmentModGenerator";
import type { IInventoryMagGen } from "@spt/generators/weapongen/IInventoryMagGen"; import type { IInventoryMagGen } from "@spt/generators/weapongen/IInventoryMagGen";
import type { InventoryMagGen } from "@spt/generators/weapongen/InventoryMagGen"; import { InventoryMagGen } from "@spt/generators/weapongen/InventoryMagGen";
import { BotGeneratorHelper } from "@spt/helpers/BotGeneratorHelper"; import { BotGeneratorHelper } from "@spt/helpers/BotGeneratorHelper";
import { BotWeaponGeneratorHelper } from "@spt/helpers/BotWeaponGeneratorHelper"; import { BotWeaponGeneratorHelper } from "@spt/helpers/BotWeaponGeneratorHelper";
import type { ItemHelper } from "@spt/helpers/ItemHelper"; import type { ItemHelper } from "@spt/helpers/ItemHelper";
@ -417,6 +417,7 @@ export class BotWeaponGenerator {
ammoTemplate, ammoTemplate,
inventory, inventory,
); );
this.inventoryMagGenComponents this.inventoryMagGenComponents
.find((v) => v.canHandleInventoryMagGen(inventoryMagGenModel)) .find((v) => v.canHandleInventoryMagGen(inventoryMagGenModel))
.process(inventoryMagGenModel); .process(inventoryMagGenModel);

View File

@ -10,7 +10,7 @@ import type { IGrid, ITemplateItem } from "@spt/models/eft/common/tables/ITempla
import type { IGetRaidConfigurationRequestData } from "@spt/models/eft/match/IGetRaidConfigurationRequestData"; import type { IGetRaidConfigurationRequestData } from "@spt/models/eft/match/IGetRaidConfigurationRequestData";
import { BaseClasses } from "@spt/models/enums/BaseClasses"; import { BaseClasses } from "@spt/models/enums/BaseClasses";
import { ConfigTypes } from "@spt/models/enums/ConfigTypes"; import { ConfigTypes } from "@spt/models/enums/ConfigTypes";
import type { ItemAddedResult } from "@spt/models/enums/ItemAddedResult"; import { ItemAddedResult } from "@spt/models/enums/ItemAddedResult";
import type { IChooseRandomCompatibleModResult } from "@spt/models/spt/bots/IChooseRandomCompatibleModResult"; import type { IChooseRandomCompatibleModResult } from "@spt/models/spt/bots/IChooseRandomCompatibleModResult";
import type { EquipmentFilters, IBotConfig, IRandomisedResourceValues } from "@spt/models/spt/config/IBotConfig"; import type { EquipmentFilters, IBotConfig, IRandomisedResourceValues } from "@spt/models/spt/config/IBotConfig";
import type { IPmcConfig } from "@spt/models/spt/config/IPmcConfig"; import type { IPmcConfig } from "@spt/models/spt/config/IPmcConfig";