mirror of
https://github.com/NuclearPowered/Reactor.git
synced 2026-11-19 13:16:50 +00:00
Patch only declared HandleRpc methods
This commit is contained in:
1 file changed
+1
-1
@@ -48,7 +48,7 @@ public class CustomRpcManager
|
||||
|
||||
public static IEnumerable<MethodBase> TargetMethods()
|
||||
{
|
||||
return InnerNetObjectTypes.Select(x => x.GetMethod(nameof(InnerNetObject.HandleRpc), AccessTools.all)!);
|
||||
return InnerNetObjectTypes.Select(x => x.GetMethod(nameof(InnerNetObject.HandleRpc), AccessTools.allDeclared)).Where(m => m != null)!;
|
||||
}
|
||||
|
||||
public static bool Prefix(InnerNetObject __instance, [HarmonyArgument(0)] byte callId, [HarmonyArgument(1)] MessageReader reader)
|
||||
|
||||
Reference in new issue
Block a user