Skip to content

Commit

Permalink
Fix playerArsenal events not clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
efoppiano committed Sep 2, 2024
1 parent debde9c commit 3c90442
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/src/player/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,6 @@ export class Player extends Phaser.Physics.Arcade.Sprite {

private clearEvents() {
this.recentEvents = [];
this.arsenal.clearEvents();
}
}
4 changes: 4 additions & 0 deletions server/src/player/playerArsenal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,8 @@ export default class PlayerArsenal {
this.currentGun = gunName;
}
}

public clearEvents() {
this.recentEvents = [];
}
}

0 comments on commit 3c90442

Please sign in to comment.