Skip to content

Commit

Permalink
fix: reset all gameplayData if TUPD doesn't in slot
Browse files Browse the repository at this point in the history
  • Loading branch information
KotRikD committed Mar 10, 2024
1 parent cfb75cb commit d3e72dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/tosu/src/entities/TourneyUserProfileData/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ export class TourneyUserProfileData extends AbstractEntity {
updateState() {
wLogger.debug(`TUPD(updateState) Starting`);

const { process, patterns } = this.services.getServices([
const { process, gamePlayData, patterns } = this.services.getServices([
'process',
'gamePlayData',
'patterns'
]);

Expand All @@ -50,6 +51,7 @@ export class TourneyUserProfileData extends AbstractEntity {
if (!spectatingUserDrawable) {
wLogger.debug('TUPD(updateState) Slot is not equiped');
this.resetState();
gamePlayData.init();
return;
}

Expand Down

0 comments on commit d3e72dd

Please sign in to comment.