Handle updating inventory with a block