From 167566dc9b89314bb9ec8e131377a2fc4da8fdd1 Mon Sep 17 00:00:00 2001
From: XtraCube <72575280+XtraCube@users.noreply.github.com>
Date: Sat, 21 Sep 2024 19:35:05 -0400
Subject: [PATCH] fix rpc custom murder
---
MiraAPI/Networking/CustomMurderRpc.cs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/MiraAPI/Networking/CustomMurderRpc.cs b/MiraAPI/Networking/CustomMurderRpc.cs
index a417ef1..51c0c52 100644
--- a/MiraAPI/Networking/CustomMurderRpc.cs
+++ b/MiraAPI/Networking/CustomMurderRpc.cs
@@ -4,6 +4,7 @@ using AmongUs.GameOptions;
using Assets.CoreScripts;
using BepInEx.Unity.IL2CPP.Utils;
using Reactor.Networking.Attributes;
+using Reactor.Networking.Rpc;
using Reactor.Utilities;
using Reactor.Utilities.Extensions;
using UnityEngine;
@@ -26,7 +27,7 @@ public static class CustomMurderRpc
/// Should the killer be snapped to the dead player.
/// Should the kill animation be shown.
/// Should the kill sound be played.
- [MethodRpc((uint)MiraRpc.CustomMurder)]
+ [MethodRpc((uint)MiraRpc.CustomMurder, LocalHandling = RpcLocalHandling.Before, SendImmediately = true)]
public static void RpcCustomMurder(
this PlayerControl source,
PlayerControl target,