diff --git a/ReallifeGamemode.Server/Util/AnimationSync.cs b/ReallifeGamemode.Server/Util/AnimationSync.cs index 7903c127..d4ae704c 100644 --- a/ReallifeGamemode.Server/Util/AnimationSync.cs +++ b/ReallifeGamemode.Server/Util/AnimationSync.cs @@ -28,6 +28,9 @@ namespace ReallifeGamemode.Server.Util public static void SyncAnimation(this Player player, List animations) { + if (animations.Count is 0) + return; + string animationName = animations.ElementAt(0); List nextAnimations = animations.Skip(1).ToList(); player.SyncAnimation(animationName);