From 0ea74f1b2082fd0df7cce07892dfdcd466784724 Mon Sep 17 00:00:00 2001 From: kookroach Date: Tue, 6 Apr 2021 21:57:28 +0200 Subject: [PATCH] fix --- ReallifeGamemode.Server/Util/AnimationSync.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)