From c7b21534ff82a60e65a6658723e82e323756aa5a Mon Sep 17 00:00:00 2001 From: XLittleLeft <96688147+XLittleLeft@users.noreply.github.com> Date: Sun, 16 Jul 2023 15:28:01 +0800 Subject: [PATCH] Fix Shake() --- NwPluginAPI/Core/Warhead.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/NwPluginAPI/Core/Warhead.cs b/NwPluginAPI/Core/Warhead.cs index 1d4bb86..804d5e0 100644 --- a/NwPluginAPI/Core/Warhead.cs +++ b/NwPluginAPI/Core/Warhead.cs @@ -81,12 +81,8 @@ public static void Start(bool isAutomatic = true, bool suppressSubtitles = false /// /// Show the shake effect to all players. /// - public static void Shake() - { - //foreach(var player in Player.List) - // player.Warhead.Shake(); - } + public static void Shake() => Server.Instance.GetComponent(globalSearch: true).RpcShake(true); #endregion } -} \ No newline at end of file +}