fix
This commit is contained in:
@@ -58,6 +58,7 @@
|
||||
let index = mp.game.joaat(player.getVariable("AnimationData"));
|
||||
let currentAnim = animationSyncData.animations[index];
|
||||
let { id, name, animDict, animName, duration, loop, flag } = currentAnim;
|
||||
let pair = pairData.find(pair => pair.from == name);
|
||||
|
||||
if (loop && !player.isPlayingAnim(animDict, animName, 3)) {
|
||||
loadAnimDict(animDict, function () {
|
||||
@@ -66,7 +67,7 @@
|
||||
if (player == mp.players.local) {
|
||||
blockInput = true;
|
||||
}
|
||||
} else if (!loop && player.isPlayingAnim(animDict, animName, 3)) {
|
||||
} else if (!loop && player.isPlayingAnim(animDict, animName, 3) && !pair) {
|
||||
if (player == mp.players.local) {
|
||||
blockInput = false;
|
||||
mp.events.callRemote("CLIENT:ClearAnimationData", player);
|
||||
|
||||
Reference in New Issue
Block a user