Skip to content

Commit

Permalink
Update logic.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mclemente committed Jan 28, 2024
1 parent d27faed commit 677653b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export class Polyglot {
const defaultLanguage = this.defaultLanguage;
if (this.knownLanguages.size === 0) {
if (game.user.isGM) this.knownLanguages = new Set(Object.keys(this.languageProvider.languages).sort());
else this.knownLanguages.add(defaultLanguage);
else if (defaultLanguage) this.knownLanguages.add(defaultLanguage);
} else if (this.knownLanguages.has(this.omniglot)) {
this.knownLanguages = new Set(Object.keys(this.languageProvider.languages).sort());
}
Expand Down

0 comments on commit 677653b

Please sign in to comment.