diff --git a/project/src/generators/LootGenerator.ts b/project/src/generators/LootGenerator.ts index b94df6c8..61092a72 100644 --- a/project/src/generators/LootGenerator.ts +++ b/project/src/generators/LootGenerator.ts @@ -209,7 +209,7 @@ export class LootGenerator max = options.itemStackLimits[item._id].max; } - return this.randomUtil.getInt(min, max); + return this.randomUtil.getInt(min ?? 1, max ?? 1); } /**