Skip to content

Commit

Permalink
fix: fixes saving players sometimes duplicating
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed May 8, 2023
1 parent 908b3c8 commit c8c2a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,8 @@ export default class InitiativeTracker extends Plugin {
player
);

this.playerCreatures.set(player.name, creature);
this.playerCreatures.delete(existing.name);
this.playerCreatures.set(player.name, creature);

const view = this.view;
if (view) {
Expand Down

0 comments on commit c8c2a9b

Please sign in to comment.