public override void Unload() { ModCompat.Unload(); ToolPrefix.ToolPrefixes = null; ChlorophyteExtractorUI.ExtractorTE = null; Instance = null; }
public override void Load() { Version targetVersion = new Version(0, 11, 5); if (ModLoader.version < targetVersion) { throw new Exception($"\nThis mod uses functionality only present in versions {targetVersion} or newer of tModLoader. Please update tModLoader to use this mod\n\n"); } Instance = this; if (!Main.dedServ) { chloroExtractInterface = new UserInterface(); chlorophyteExtractorUI = new ChlorophyteExtractorUI(); chlorophyteExtractorUI.Activate(); chloroExtractInterface.SetState(chlorophyteExtractorUI); reforgeMachineInterface = new UserInterface(); } GadgetHooks.Initialize(); }