Update the player inventory.