Updated InventoryTask to work with mod guis as well