Luna was having an NRE in the runwhen so skip it if we don't need it

This commit is contained in:
Nick 2024-02-04 01:04:35 -05:00
parent 6921a0efb9
commit 8882b70b70

View File

@ -1,3 +1,4 @@
using Autodesk.Fbx;
using HarmonyLib;
using NewHorizons.Utility.Files;
using NewHorizons.Utility.OWML;
@ -27,6 +28,9 @@ namespace NewHorizons.Patches.EyeScenePatches
__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);
__instance._receivedSubmitAction = true;