Beispiel #1
0
 private void StartMod(ModInstance instance)
 {
     LoaderApi.ModLoading(instance.Mod, instance.ModConfig);
     instance.Start(LoaderApi);
     _modifications[instance.ModConfig.ModId] = instance;
     LoaderApi.ModLoaded(instance.Mod, instance.ModConfig);
 }
 private void StartMod(ModInstance instance)
 {
     try
     {
         LoaderApi.ModLoading(instance.Mod, instance.ModConfig);
         instance.Start(LoaderApi);
         _modifications[instance.ModConfig.ModId] = instance;
         LoaderApi.ModLoaded(instance.Mod, instance.ModConfig);
     }
     catch (Exception)
     {
         Logger.WriteLine($"Error while starting mod: {instance.ModConfig.ModId}", Logger.ColorRed);
         throw;
     }
 }