Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
HerpDerpinstine committed Feb 12, 2022
1 parent 42911fd commit 70980ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Hooks/GameController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ internal static void Initialize()
Debug.LogPatchInit("GameController.SetupLevel");
GbHapticsIntegration.ModHarmony.Patch(
AccessTools.Method(typeof(GameController), "SetupLevel"),
AccessTools.Method(typeof(H_GameController), "SetupLevel_Postfix").ToNewHarmonyMethod());
AccessTools.Method(typeof(H_GameController), "SetupLevel_Prefix").ToNewHarmonyMethod());
}

private static void SetupLevel_Postfix(GameController __instance)
private static void SetupLevel_Prefix(GameController __instance)
{
if ((__instance.player == null)
|| (__instance.player.damageRelay == null))
Expand Down

0 comments on commit 70980ac

Please sign in to comment.