public void action() { OptionalPatches.update(); // we need to update patches before the code below, so we using single action if (!Main.config.limitBlueprints) { uGUIBuilderMenu_Show_Patch.enableAllTabs(); } uGUI_BuilderMenu.singleton.UpdateItems(); }
public void action() { OptionalPatches.update(); if (!Main.config.limitBlueprints) { uGUIBuilderMenu_Show_Patch.enableAllTabs(); } uGUI_BuilderMenu.singleton.UpdateItems(); }
public void action() { Debug.assert(args.isNullOrEmpty() || args.All(arg => arg is Type)); if (args.isNullOrEmpty()) { OptionalPatches.update(); } else { args.forEach(arg => OptionalPatches.update(arg as Type)); } }