コード例 #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
ファイル: Mod.cs プロジェクト: Kamil241080/Subnautica-Mods
 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;
     }
 }