From 9e3ac170dbba8e23085a7a4d7d0a9497447fd585 Mon Sep 17 00:00:00 2001 From: kookroach Date: Tue, 6 Apr 2021 19:05:03 +0200 Subject: [PATCH] try fix --- ReallifeGamemode.Client/util/animationSync.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ReallifeGamemode.Client/util/animationSync.ts b/ReallifeGamemode.Client/util/animationSync.ts index e97aed7f..be395bf0 100644 --- a/ReallifeGamemode.Client/util/animationSync.ts +++ b/ReallifeGamemode.Client/util/animationSync.ts @@ -59,6 +59,8 @@ let currentAnim = animationSyncData.animations[index]; let { id, name, animDict, animName, duration, loop, flag } = currentAnim; let pair = pairData.find(pair => pair.from == name); + if (pair) + return; if (loop && !player.isPlayingAnim(animDict, animName, 3)) { loadAnimDict(animDict, function () { @@ -67,7 +69,7 @@ if (player == mp.players.local) { blockInput = true; } - } else if (!loop && player.isPlayingAnim(animDict, animName, 3) && !pair) { + } else if (!loop && player.isPlayingAnim(animDict, animName, 3)) { let a = setInterval(function () { if (player == mp.players.local) { blockInput = false;