try fix
This commit is contained in:
@@ -59,6 +59,8 @@
|
|||||||
let currentAnim = animationSyncData.animations[index];
|
let currentAnim = animationSyncData.animations[index];
|
||||||
let { id, name, animDict, animName, duration, loop, flag } = currentAnim;
|
let { id, name, animDict, animName, duration, loop, flag } = currentAnim;
|
||||||
let pair = pairData.find(pair => pair.from == name);
|
let pair = pairData.find(pair => pair.from == name);
|
||||||
|
if (pair)
|
||||||
|
return;
|
||||||
|
|
||||||
if (loop && !player.isPlayingAnim(animDict, animName, 3)) {
|
if (loop && !player.isPlayingAnim(animDict, animName, 3)) {
|
||||||
loadAnimDict(animDict, function () {
|
loadAnimDict(animDict, function () {
|
||||||
@@ -67,7 +69,7 @@
|
|||||||
if (player == mp.players.local) {
|
if (player == mp.players.local) {
|
||||||
blockInput = true;
|
blockInput = true;
|
||||||
}
|
}
|
||||||
} else if (!loop && player.isPlayingAnim(animDict, animName, 3) && !pair) {
|
} else if (!loop && player.isPlayingAnim(animDict, animName, 3)) {
|
||||||
let a = setInterval(function () {
|
let a = setInterval(function () {
|
||||||
if (player == mp.players.local) {
|
if (player == mp.players.local) {
|
||||||
blockInput = false;
|
blockInput = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user