private static void OnConsoleCommand_lock(NotificationCenter.Notification n) { if (n != null && n.data != null) { string text = (string)n.data[0]; if (text == "all") { List <TechType> list = new List <TechType>(KnownTech.GetTech()); for (int i = 0; i < list.Count; i++) { KnownTech.Remove(list[i]); } return; } TechType techType; if (UWE.Utils.TryParseEnum <TechType>(text, out techType) && CraftData.IsAllowed(techType)) { bool flag = false | KnownTech.Remove(techType); PDAScanner.RemoveAllEntriesWhichUnlocks(techType); ErrorMessage.AddDebug("Locked " + Language.main.Get(techType.AsString(false))); } } }