- Fix invalid index when ticking itemstacks in a player nventory by adding a new onInventoryTick event. Closes #9453