Fixed bot generation error

This commit is contained in:
Dev 2024-05-30 10:09:04 +01:00
parent b8ee834165
commit 56d135fe6d

View File

@ -48,7 +48,7 @@ export class PMCLootGenerator
{ {
const items = this.databaseService.getItems(); const items = this.databaseService.getItems();
const pmcPriceOverrides const pmcPriceOverrides
= this.databaseService.getBots()[botRole === "sptBear" ? "bear" : "usec"].inventory.items = this.databaseService.getBots().types[botRole === "sptBear" ? "bear" : "usec"].inventory.items
.Pockets; .Pockets;
const allowedItemTypes = this.pmcConfig.pocketLoot.whitelist; const allowedItemTypes = this.pmcConfig.pocketLoot.whitelist;