Skip to content

Commit

Permalink
fix: update load monster to prevent reference collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Jan 20, 2022
1 parent dd737ce commit 1690d5c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,7 @@ export default class StatBlockPlugin extends Plugin {

this.data = new Map(
data?.map(([name, monster]) => {
const statblock = Object.assign({}, monster);

return [name, statblock];
return [name, fastCopy(monster)];
}) ?? []
);
}
Expand Down

0 comments on commit 1690d5c

Please sign in to comment.