considerInventory

Consider if the inventory is open or not. If the inventory is open, we might not want to continue updating.