Fixed bug with addItemStackToInventory ignoring the starting index