## Bug fixes
- Stop Tower of Quantum Knowledge proxy from appearing near the end of
the loop.
This commit is contained in:
Nick 2023-08-28 01:10:26 -04:00 committed by GitHub
commit 5cf88673de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,19 @@
using HarmonyLib;
namespace NewHorizons.Patches.BrittleHollowPatches;
[HarmonyPatch(typeof(TimedFragmentIntegrity))]
internal class TimedFragmentIntegrityPatches
{
// For some inexplicable reason Mobius decided to implement some weird custom loop using delayed method invoking
// This starts on Awake and isn't stopped by the object being set inactive
// Mobius why
// We just need to have this method not run if the object is inactive, to prevent the fragment being detached and activating its own proxy body
// While the fragment itself never appears, the proxy does
[HarmonyPrefix]
[HarmonyPatch(nameof(TimedFragmentIntegrity.OnLatestTimeReached))]
public static bool TimedFragmentIntegrity_OnLatestTimeReached(TimedFragmentIntegrity __instance)
{
return __instance.gameObject.activeInHierarchy;
}
}

View File

@ -4,7 +4,7 @@
"author": "xen, Bwc9876, clay, MegaPiggy, John, Trifid, Hawkbar, Book",
"name": "New Horizons",
"uniqueName": "xen.NewHorizons",
"version": "1.16.1",
"version": "1.16.2",
"owmlVersion": "2.9.3",
"dependencies": [ "JohnCorby.VanillaFix", "_nebula.MenuFramework", "xen.CommonCameraUtility", "dgarro.CustomShipLogModes" ],
"conflicts": [ "Raicuparta.QuantumSpaceBuddies", "PacificEngine.OW_CommonResources" ],