Example #1
0
        internal static void Start()
        {
            CleanLogger.Install();
            BugReportFlagger.Init();
            Console.WriteLine($"Nuterra.NuterraApi.Start({CurrentVersion})");

            if (!Directory.Exists(FolderStructure.DataFolder))
            {
                Console.WriteLine("Nuterra data folder is missing! Mods won't be loaded.");
                return;
            }

            Directory.CreateDirectory(FolderStructure.ModsFolder);
            Directory.CreateDirectory(FolderStructure.ConfigFolder);

            ModLoader.Instance.LoadAllMods(FolderStructure.ModsFolder);
            BlockLoader.PostModsLoaded();
        }
Example #2
0
 public void Register()
 {
     ThrowIfFinished();
     _finished = true;
     BlockLoader.Register(_customBlock);
 }