ASTExtension: Fixed ClearAvatar patch not being prefix

This commit is contained in:
NotAKidoS 2024-07-03 01:33:56 -05:00
parent b37d49647e
commit 6930807665
6 changed files with 54 additions and 58 deletions

View file

@ -82,7 +82,7 @@ public class ASTExtensionMod : MelonMod
HarmonyInstance.Patch(
typeof(PlayerSetup).GetMethod(nameof(PlayerSetup.ClearAvatar),
BindingFlags.Public | BindingFlags.Instance),
postfix: new HarmonyMethod(typeof(ASTExtensionMod).GetMethod(nameof(OnClearAvatar),
prefix: new HarmonyMethod(typeof(ASTExtensionMod).GetMethod(nameof(OnClearAvatar),
BindingFlags.NonPublic | BindingFlags.Static))
);