Inventory.updateItemIndex C# (CSharp) Method