MyItemInfo.MaxStackAmount is never set, always has default value

Blargmode shared this bug 5 years ago
Outdated

It's always set to 9223372036854.775807 (Max value of MyFixedPoint)


Code to replicate:

Run on grid with a Small Cargo Container by the same name.


void Main()
{
	var container = GridTerminalSystem.GetBlockWithName("Small Cargo Container");
	var items = new List<MyInventoryItem>();
	container.GetInventory(0).GetItems(items);
	foreach (var item in items)
	{
		Echo(item.Type.SubtypeId + " " + item.Type.GetItemInfo().MaxStackAmount);
	}
}

Replies (1)

photo
1

Hello, Engineer!


Thank you for your feedback! Your topic has been added between considered issues.

Please keep voting for the issue as it will help us to identify the most serious bugs.


We really appreciate your patience.


Kind Regards

Keen Software House: QA Department

Leave a Comment
 
Attach a file