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;