Merge pull request #580 Address issue with bricks selling 1 at a time

Address issue with bricks selling 1 at a time
This commit is contained in:
David Markowitz 2022-06-12 14:15:42 -07:00 committed by GitHub
commit df9f9f08b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
} }