mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-11-04 06:32:00 +00:00 
			
		
		
		
	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:
		@@ -208,7 +208,8 @@ void InventoryComponent::AddItem(
 | 
			
		||||
 | 
			
		||||
	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;
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user