public static void Postfix() { if (InventoryOpener.LastOpened != null && !InventoryOpener.DontEnable) { InventoryOpener.LastOpened.isEnabled = true; InventoryOpener.GetIconForItem(InventoryOpener.LastOpened)?.SetChroma(1f); InventoryOpener.LastOpened = null; } }
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; } }