From fb601d508055f686ed459ac186aeb7c95083fab8 Mon Sep 17 00:00:00 2001 From: kookroach Date: Tue, 6 Apr 2021 17:02:54 +0200 Subject: [PATCH] try fix --- ReallifeGamemode.Client/util/animationSync.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ReallifeGamemode.Client/util/animationSync.ts b/ReallifeGamemode.Client/util/animationSync.ts index 6ccb7840..b18bb93e 100644 --- a/ReallifeGamemode.Client/util/animationSync.ts +++ b/ReallifeGamemode.Client/util/animationSync.ts @@ -71,7 +71,7 @@ mp.events.addDataHandler("AnimationData", (entity: PlayerMp, string) => { entity.clearTasksImmediately(); - + blockInput = false; if (string == null) { return; } @@ -99,11 +99,9 @@ }); mp.events.add("render", () => { - mp.game.controls.disableControlAction(32, 24, blockInput); - mp.game.controls.disableControlAction(32, 140, blockInput); - mp.game.controls.disableControlAction(32, 141, blockInput); - mp.game.controls.disableControlAction(32, 142, blockInput); - mp.game.controls.disableControlAction(32, 257, blockInput); + if (blockInput) { + mp.game.controls.disableControlAction(32, 24, true); + } }); function loadAnimDict(animDict, callback) {