Skip to content

Commit

Permalink
1.18.5 (#774)
Browse files Browse the repository at this point in the history
## Bug fixes
- Fixed some people having an NRE when clicking resume game.
- Fixed a typo to better check if addons are using the DLC
  • Loading branch information
xen-42 committed Feb 4, 2024
2 parents fb28b1e + e1c23b2 commit bd79e48
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NewHorizons/External/NewHorizonBody.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public bool RequiresDLC()
return Config.Cloak != null
|| Config.Props?.rafts != null
|| Config.Props?.slideShows != null
|| detailPaths.Any(x => x.StartsWith("Ringworld") || x.StartsWith("Dreamworld"));
|| detailPaths.Any(x => x.StartsWith("RingWorld_Body") || x.StartsWith("DreamWorld_Body"));
}

#region Cache
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Autodesk.Fbx;
using HarmonyLib;
using NewHorizons.Utility.Files;
using NewHorizons.Utility.OWML;
Expand Down Expand Up @@ -26,6 +27,9 @@ public static bool SubmitActionLoadScene_ConfirmSubmit(SubmitActionLoadScene __i
Main.Instance.IsWarpingBackToEye = true;
__instance._sceneToLoad = SubmitActionLoadScene.LoadableScenes.GAME;
}

// Don't bother going through this stuff if we don't have to
if (AssetBundleUtilities.AreRequiredAssetsLoaded()) return true;

// modified from patched function
SubmitActionConfirm_ConfirmSubmit(__instance);
Expand Down
2 changes: 1 addition & 1 deletion NewHorizons/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"author": "xen, Bwc9876, clay, MegaPiggy, John, Trifid, Hawkbar, Book",
"name": "New Horizons",
"uniqueName": "xen.NewHorizons",
"version": "1.18.4",
"version": "1.18.5",
"owmlVersion": "2.9.8",
"dependencies": [ "JohnCorby.VanillaFix", "_nebula.MenuFramework", "xen.CommonCameraUtility", "dgarro.CustomShipLogModes" ],
"conflicts": [ "Raicuparta.QuantumSpaceBuddies", "PacificEngine.OW_CommonResources" ],
Expand Down

0 comments on commit bd79e48

Please sign in to comment.