Can't patch Getter Anymore #3
Unanswered
nachomastero
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since BL 1.7.1 update, my patch for Getter IsVisibleNotification is no longer working, patch is ignored like not existed. the BL code for this function seems not changed. Is somebody experiencing similar issues trying to patch getters?
[HarmonyPatch(typeof(PregnancyLogEntry), "get_IsVisibleNotification")] internal class PregLogEntrySetIsVisibleNotificationPatch { private PregLogEntrySetIsVisibleNotificationPatch() { } public static bool Prefix(PregnancyLogEntry __instance, ref bool __result) { __result=true; InformationManager.DisplayMessage(new InformationMessage("PATCH WORKING")); return false; } }
I am not getting the printed message anymore, I also try
[HarmonyPatch(typeof(PregnancyLogEntry), "IsVisibleNotification", MethodType.Getter)]
but still no success.Beta Was this translation helpful? Give feedback.
All reactions