Skip to content

Commit

Permalink
Merge pull request #306 from the-hideout/fix-lang-error
Browse files Browse the repository at this point in the history
fix shortNames for all languages
  • Loading branch information
Razzmatazzz authored Aug 29, 2024
2 parents 38ced3c + bb7b9b0 commit f6bc66d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions commands/player.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ const defaultFunction = {
achievementsEmbed.setTitle(t('Achievements'));
for (const achievement of completedAchievements) {
const completed = new Date(achievement.completed * 1000);
if (!completed) {
continue;
}
achievementsEmbed.addFields(
{ name: achievement.name, value: completed.toLocaleString(lang), inline: true },
);
Expand Down
2 changes: 1 addition & 1 deletion modules/game-data.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ export async function getItems(options = defaultOptions) {
return {
...item,
name: itemNames[item.id].name,
shortName: itemNames.shortName,
shortName: itemNames[item.id].shortName,
properties,
}
});
Expand Down

0 comments on commit f6bc66d

Please sign in to comment.