mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Don't do fixed update if there is no cloak sphere shape
This commit is contained in:
parent
f145d5ccc8
commit
3a5b5f9b92
@ -7,6 +7,13 @@ namespace NewHorizons.Patches
|
||||
{
|
||||
public static class CloakPatches
|
||||
{
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(CloakFieldController), nameof(CloakFieldController.FixedUpdate))]
|
||||
public static bool CloakFieldController_FixedUpdate(CloakFieldController __instance)
|
||||
{
|
||||
return __instance._cloakSphereShape != null;
|
||||
}
|
||||
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(CloakFieldController), nameof(CloakFieldController.isPlayerInsideCloak), MethodType.Getter)]
|
||||
public static void CloakFieldController_isPlayerInsideCloak(CloakFieldController __instance, ref bool __result)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user