fix RPC warnings

This commit is contained in:
XtraCube committed 2025-06-19 23:21:14 -04:00
1 parent fb3eabfb29
commit 9077a13b5d
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -63,7 +63,7 @@ public abstract class CustomGameOver
var reason = GameOverManager.GetGameOverId<T>(); var reason = GameOverManager.GetGameOverId<T>();
var data = new GameOverData(reason, [.. winners]); var data = new GameOverData(reason, [.. winners]);
Rpc<CustomGameOverRpc>.Instance.Send(PlayerControl.LocalPlayer, data); Rpc<CustomGameOverRpc>.Instance.Send(PlayerControl.LocalPlayer, data, true);
} }
/// <summary> /// <summary>
+1 -1
View File
@@ -29,7 +29,7 @@ public static class CustomMurderRpc
/// <param name="teleportMurderer">Should the killer be snapped to the dead player.</param> /// <param name="teleportMurderer">Should the killer be snapped to the dead player.</param>
/// <param name="showKillAnim">Should the kill animation be shown.</param> /// <param name="showKillAnim">Should the kill animation be shown.</param>
/// <param name="playKillSound">Should the kill sound be played.</param> /// <param name="playKillSound">Should the kill sound be played.</param>
[MethodRpc((uint)MiraRpc.CustomMurder, LocalHandling = RpcLocalHandling.Before)] [MethodRpc((uint)MiraRpc.CustomMurder, LocalHandling = RpcLocalHandling.Before, SendImmediately = true)]
public static void RpcCustomMurder( public static void RpcCustomMurder(
this PlayerControl source, this PlayerControl source,
PlayerControl target, PlayerControl target,
@@ -300,7 +300,7 @@ public static class RoleSettingMenuPatches
if (AmongUsClient.Instance.AmHost) if (AmongUsClient.Instance.AmHost)
{ {
Rpc<SyncRoleOptionsRpc>.Instance.Send(PlayerControl.LocalPlayer, [role.GetNetData()]); Rpc<SyncRoleOptionsRpc>.Instance.Send(PlayerControl.LocalPlayer, [role.GetNetData()], true);
} }
GameOptionsManager.Instance.GameHostOptions = GameOptionsManager.Instance.CurrentGameOptions; GameOptionsManager.Instance.GameHostOptions = GameOptionsManager.Instance.CurrentGameOptions;