From 0b57fe3a5b7379aa4e78d81004d02991f3631f5e Mon Sep 17 00:00:00 2001 From: Dev Date: Sat, 25 Nov 2023 10:04:17 +0000 Subject: [PATCH] Stop `addAmmoIntoEquipmentSlots()` from adding ammo if item cannot find container to add item to --- project/src/helpers/BotWeaponGeneratorHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/helpers/BotWeaponGeneratorHelper.ts b/project/src/helpers/BotWeaponGeneratorHelper.ts index fa576dfd..3c370f41 100644 --- a/project/src/helpers/BotWeaponGeneratorHelper.ts +++ b/project/src/helpers/BotWeaponGeneratorHelper.ts @@ -136,7 +136,7 @@ export class BotWeaponGeneratorHelper { this.logger.debug(`Unable to add ammo: ${ammoItem._tpl} to bot inventory, ${ItemAddedResult[result]}`); - if (result === ItemAddedResult.NO_SPACE) + if (result === ItemAddedResult.NO_SPACE || result === ItemAddedResult.NO_CONTAINERS) { // If there's no space for 1 stack, there's no space for the others break;