Handle edge case when an item is missing a min/max stack size value
This commit is contained in:
parent
3f46cffcfe
commit
7c2d93e87b
@ -209,7 +209,7 @@ export class LootGenerator
|
|||||||
max = options.itemStackLimits[item._id].max;
|
max = options.itemStackLimits[item._id].max;
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.randomUtil.getInt(min, max);
|
return this.randomUtil.getInt(min ?? 1, max ?? 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user