diff --git a/src/OWML.Launcher/OWML.Manifest.json b/src/OWML.Launcher/OWML.Manifest.json index cf6724f3..ed46c39b 100644 --- a/src/OWML.Launcher/OWML.Manifest.json +++ b/src/OWML.Launcher/OWML.Manifest.json @@ -3,7 +3,7 @@ "author": "Alek", "name": "OWML", "uniqueName": "Alek.OWML", - "version": "2.12.0", + "version": "2.12.1", "minGameVersion": "1.1.14.768", "maxGameVersion": "1.1.14.768" } diff --git a/src/OWML.ModHelper.Menus/NewMenuSystem/MenuManager.cs b/src/OWML.ModHelper.Menus/NewMenuSystem/MenuManager.cs index 42bdc755..b95bc799 100644 --- a/src/OWML.ModHelper.Menus/NewMenuSystem/MenuManager.cs +++ b/src/OWML.ModHelper.Menus/NewMenuSystem/MenuManager.cs @@ -221,16 +221,16 @@ void SaveConfig() var settingObject = setting as JObject; - if (settingObject["dlcOnly"].ToObject()) + if (settingObject != default(JObject)) { - if (EntitlementsManager.IsDlcOwned() == EntitlementsManager.AsyncOwnershipStatus.NotOwned) + if (settingObject["dlcOnly"]?.ToObject() ?? false) { - continue; + if (EntitlementsManager.IsDlcOwned() == EntitlementsManager.AsyncOwnershipStatus.NotOwned) + { + continue; + } } - } - if (settingObject != default(JObject)) - { if (settingObject["title"] != null) { label = mod.ModHelper.MenuTranslations.GetLocalizedString(settingObject["title"].ToString());