mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Log error if addon manifest couldn't load (improper formatting)
This commit is contained in:
parent
563370119a
commit
804ef01808
@ -735,6 +735,12 @@ namespace NewHorizons
|
||||
|
||||
var addonConfig = mod.ModHelper.Storage.Load<AddonConfig>(file, false);
|
||||
|
||||
if (addonConfig == null)
|
||||
{
|
||||
NHLogger.LogError($"Addon manifest for {mod.ModHelper.Manifest.Name} could not load, check your JSON");
|
||||
return;
|
||||
}
|
||||
|
||||
if (addonConfig.achievements != null)
|
||||
{
|
||||
AchievementHandler.RegisterAddon(addonConfig, mod as ModBehaviour);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user