/// <summary> /// Registers the API for Better Farm Animal Variety, and check if it has been disabled in the user's options. /// If so, set it to null /// </summary> public static void RegisterBFAV() { BFAV = ModEntry.helper.ModRegistry.GetApi <IBFAVApi>("Paritee.BetterFarmAnimalVariety"); if (BFAV == null) { ModEntry.monitor.Log("BFAV API not detected. This is only an issue if you're using custom BFAV animals and a custom shop that's supposed to sell them, as custom animals will not appear in those shops.", LogLevel.Info); } else if (!BFAV.IsEnabled()) { BFAV = null; ModEntry.monitor.Log("BFAV is installed but not enabled. This is only an issue if you're using custom BFAV animals and a custom shop that's supposed to sell them, as custom animals will not appear in those shops", LogLevel.Info); } }
/// <summary> /// Registers the API for Better Farm Animal Variety, and check if it has been disabled in the user's options. /// If so, set it to null /// </summary> public static void RegisterBFAV() { BFAV = ModEntry.helper.ModRegistry.GetApi <IBFAVApi>("Paritee.BetterFarmAnimalVariety"); if (BFAV == null) { ModEntry.monitor.Log("BFAV API not detected. Custom farm animals will not be added to animal shops.", LogLevel.Info); } else if (!BFAV.IsEnabled()) { BFAV = null; ModEntry.monitor.Log("BFAV is installed but not enabled. Custom farm animals will not be added to animal shops.", LogLevel.Info); } }