Address bricks selling 1 at a time

Bricks have a stack size of zero in the cdclient so we need to make sure to give them a full stack size of 999 as we do for the bricks inventory with the selling inventory.
This commit is contained in:
EmosewaMC 2022-06-12 11:44:45 -07:00
parent c5dff54e01
commit 81431cfcbd

View File

@ -208,7 +208,8 @@ void InventoryComponent::AddItem(
auto stack = static_cast<uint32_t>(info.stackSize); auto stack = static_cast<uint32_t>(info.stackSize);
if (inventoryType == eInventoryType::BRICKS) // info.itemType of 1 is item type brick
if (inventoryType == eInventoryType::BRICKS || (stack == 0 && info.itemType == 1))
{ {
stack = 999; stack = 999;
} }