public override void OnNotify(NOTIFY_FLAG flags) { if ((flags & NOTIFY_FLAG.UPDATE_ITEM_INVENTORY) != (NOTIFY_FLAG)0L) { ItemInfo itemInfo = MonoBehaviourSingleton <InventoryManager> .I.itemInventory.Find(data.GetUniqID()); if (itemInfo != null && itemInfo.num > 0) { data = new ItemSortData(); data.SetItem(itemInfo); } } base.OnNotify(flags); }