diff --git a/ReallifeGamemode.Server/Util/AnimationSync.cs b/ReallifeGamemode.Server/Util/AnimationSync.cs index 6d1b47c4..c53a5aba 100644 --- a/ReallifeGamemode.Server/Util/AnimationSync.cs +++ b/ReallifeGamemode.Server/Util/AnimationSync.cs @@ -20,6 +20,7 @@ namespace ReallifeGamemode.Server.Util return; player.SetSharedData("AnimationData", newAnimation); + player.SetData("Animation", newAnimation); } /// Check if Player has any Animation playing. @@ -35,7 +36,7 @@ namespace ReallifeGamemode.Server.Util /// Name of requested animation public static bool HasAnimation(this Player player, dynamic animationName) { - return player.HasData("Animation") && (player.GetData("AnimationData") == animationName); + return player.HasData("Animation") && (player.GetData("Animation") == animationName); } public static void ClearAnimation(this Player player)