예제 #1
0
 public static void Postfix()
 {
     if (InventoryOpener.LastOpened != null && !InventoryOpener.DontEnable)
     {
         InventoryOpener.LastOpened.isEnabled = true;
         InventoryOpener.GetIconForItem(InventoryOpener.LastOpened)?.SetChroma(1f);
         InventoryOpener.LastOpened = null;
     }
 }
예제 #2
0
 public static void Postfix()
 {
     try
     {
         if (InventoryOpener.LastOpened != null && !InventoryOpener.DontEnable)
         {
             InventoryOpener.LastOpened.isEnabled = true;
             InventoryOpener.GetIconForItem(InventoryOpener.LastOpened)?.SetChroma(1f);
             InventoryOpener.LastOpened = null;
         }
     }
     catch (Exception e)
     {
         Logger.Exception(e, LoggedWhen.InPatch, QMod.assembly);
         return;
     }
 }