This commit is contained in:
2021-04-06 19:05:03 +02:00
parent 7347c0c1af
commit 9e3ac170db

View File

@@ -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;