Skip to content

Commit

Permalink
2.12.1
Browse files Browse the repository at this point in the history
- Fixed an NRE that broke menus
  • Loading branch information
xen-42 authored Jun 5, 2024
2 parents 1ed0296 + d96e889 commit c43c9d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/OWML.Launcher/OWML.Manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
12 changes: 6 additions & 6 deletions src/OWML.ModHelper.Menus/NewMenuSystem/MenuManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -221,16 +221,16 @@ void SaveConfig()
var settingObject = setting as JObject;
if (settingObject["dlcOnly"].ToObject<bool>())
if (settingObject != default(JObject))
{
if (EntitlementsManager.IsDlcOwned() == EntitlementsManager.AsyncOwnershipStatus.NotOwned)
if (settingObject["dlcOnly"]?.ToObject<bool>() ?? 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());
Expand Down

0 comments on commit c43c9d1

Please sign in to comment.