diff --git a/project/src/generators/BotLootGenerator.ts b/project/src/generators/BotLootGenerator.ts index 7c03f5b3..28005ef6 100644 --- a/project/src/generators/BotLootGenerator.ts +++ b/project/src/generators/BotLootGenerator.ts @@ -362,6 +362,7 @@ export class BotLootGenerator // return true, we are over limit if (limitCount[idToCheckFor] > itemSpawnLimits[idToCheckFor]) { + // Prevent edge-case of small loot pools and code tries to max-limit-reached item over and over if (limitCount[idToCheckFor] > itemSpawnLimits[idToCheckFor] * 10) { this.logger.warning(this.localisationService.getText("bot-item_spawn_limit_reached_skipping_item", {botRole: botRole, itemName: itemTemplate._name, attempts: limitCount[idToCheckFor]}));