From 98bcc20bae7987f1111650dd51a32106668b23a1 Mon Sep 17 00:00:00 2001 From: AlexejheroYTB Date: Sun, 17 Jan 2021 16:27:10 +0200 Subject: [PATCH] Change AmBanned patch to Postfix (#4) --- Reactor.Debugger/Patches/Test.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Reactor.Debugger/Patches/Test.cs b/Reactor.Debugger/Patches/Test.cs index 60f21b7..3440779 100644 --- a/Reactor.Debugger/Patches/Test.cs +++ b/Reactor.Debugger/Patches/Test.cs @@ -32,9 +32,9 @@ namespace Reactor.Debugger.Patches [HarmonyPatch(typeof(StatsManager), nameof(StatsManager.AmBanned), MethodType.Getter)] public static class AmBannedPatch { - public static bool Prefix(ref bool __result) + public static void Postfix(out bool __result) { - return __result = false; + __result = false; } }