fix onNextPhase callback
This commit is contained in:
parent
e80f158691
commit
c47c82e634
|
@ -240,7 +240,7 @@ export default class PhaseInterceptor {
|
||||||
const currentPhase = this.onHold[0];
|
const currentPhase = this.onHold[0];
|
||||||
if (currentPhase?.name === targetName) {
|
if (currentPhase?.name === targetName) {
|
||||||
clearInterval(interval);
|
clearInterval(interval);
|
||||||
cb(currentPhase);
|
cb(this.scene.getCurrentPhase());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue