Changed the way the inventory works so that it gets updated whenever a new item is added