public static void ExitMechLab_Pre(MechLabPanel __instance)
 {
     if (state == null)
     {
         LogError("[LimitItems] Unhandled ExitMechLab"); return;
     }
     LogDebug("[LimitItems] Exiting mechlab");
     state.Dispose();
     state = null;
 }
 public static bool PopulateInventory_Pre(MechLabPanel __instance)
 {
     if (state != null)
     {
         LogError("[LimitItems] PopulateInventory was not properly cleaned");
     }
     LogDebug("[LimitItems] PopulateInventory patching (Mechlab fix)");
     state = new PatchMechlabLimitItems(__instance);
     return(false);
 }