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()); }