From 6b73203860a8ab158f5bfea7250017210522d568 Mon Sep 17 00:00:00 2001 From: kookroach Date: Tue, 6 Apr 2021 23:42:42 +0200 Subject: [PATCH] debug --- ReallifeGamemode.Server/Util/AnimationSync.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ReallifeGamemode.Server/Util/AnimationSync.cs b/ReallifeGamemode.Server/Util/AnimationSync.cs index b1f2dbf7..fc7c6b15 100644 --- a/ReallifeGamemode.Server/Util/AnimationSync.cs +++ b/ReallifeGamemode.Server/Util/AnimationSync.cs @@ -28,7 +28,9 @@ namespace ReallifeGamemode.Server.Util string animationName = animations.ElementAt(0); List nextAnimations = animations.Skip(1).ToList(); player.SyncAnimation(animationName); - player.TriggerEvent("SERVER:QueueAnimations", nextAnimations.ToArray(), animationName); + + if (nextAnimations.Count != 0) + player.TriggerEvent("SERVER:QueueAnimations", nextAnimations.ToArray(), animationName); } /// Check if Player has any Animation playing. @@ -62,6 +64,7 @@ namespace ReallifeGamemode.Server.Util [RemoteEvent("CLIENT:AnimPairTransition")] public void AnimPairTransition(Player player, string[] transitionTo) { + player.SendChatMessage(transitionTo.ToString()); player.SyncAnimation(transitionTo.ToList()); }