This commit is contained in:
2021-04-07 18:05:32 +02:00
parent 78f4e136ee
commit d17038f107

View File

@@ -28,6 +28,9 @@ namespace ReallifeGamemode.Server.Util
public static void SyncAnimation(this Player player, List<string> animations) public static void SyncAnimation(this Player player, List<string> animations)
{ {
if (animations.Count is 0)
return;
string animationName = animations.ElementAt(0); string animationName = animations.ElementAt(0);
List<string> nextAnimations = animations.Skip(1).ToList(); List<string> nextAnimations = animations.Skip(1).ToList();
player.SyncAnimation(animationName); player.SyncAnimation(animationName);