From 329667f4fb6f4480d693059c721c57290af11dfb Mon Sep 17 00:00:00 2001 From: kookroach Date: Tue, 6 Apr 2021 16:52:14 +0200 Subject: [PATCH] fix --- ReallifeGamemode.Client/util/animationSync.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ReallifeGamemode.Client/util/animationSync.ts b/ReallifeGamemode.Client/util/animationSync.ts index 750b9513..7343190b 100644 --- a/ReallifeGamemode.Client/util/animationSync.ts +++ b/ReallifeGamemode.Client/util/animationSync.ts @@ -92,14 +92,14 @@ mp.players.exists(entity) && 0 !== entity.handle && entity.taskPlayAnim(animDict, animName, 8, 1, duration, parseInt(flag), 0, !1, !1, !1) }); - if (entity == mp.players.local) { //block player from using LMB to attack - blockInput = true; - } - let pair = pairData.find(pair => pair.from == string); if (!pair) return; + if (entity == mp.players.local) { //block player from using LMB to attack + blockInput = true; + } + let a = setInterval(function () { mp.events.callRemote("CLIENT:AnimPairTransition", entity, pair.transitionTo); clearInterval(a);