Added check for stack count below 1 and resets to 1 when handling single items being passed into unstackOfferItems()
(cherry picked from commit 78f6fad21b
)
This commit is contained in:
parent
665778eaf1
commit
5447203bf4
@ -310,6 +310,12 @@ export class RagfairOfferService
|
|||||||
// Items within stack tolerance, return existing data - no changes needed
|
// Items within stack tolerance, return existing data - no changes needed
|
||||||
if (totalItemCount <= itemMaxStackSize)
|
if (totalItemCount <= itemMaxStackSize)
|
||||||
{
|
{
|
||||||
|
// Edge case - Ensure items stack count isnt < 1
|
||||||
|
if (items[0]?.upd?.StackObjectsCount < 1)
|
||||||
|
{
|
||||||
|
items[0].upd.StackObjectsCount = 1;
|
||||||
|
}
|
||||||
|
|
||||||
return items;
|
return items;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user