Skip to content

Commit

Permalink
Fix outdated DB references, fix #35
Browse files Browse the repository at this point in the history
  • Loading branch information
346184 committed Dec 28, 2021
1 parent 799eb05 commit e0aa87f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/converters.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ function convertMonsterName(m, translation, data) {

var id = getMonsterID(m);

return MonsterData.data[id] ? MonsterData.data[id].name : m;
return monsterDataDB[normalize(data.name)] ? monsterDataDB[normalize(data.name)].name : m;
}

function convertMonsterToken(m, translation, data) {
Expand Down Expand Up @@ -389,7 +389,7 @@ function convertMonsterEnvironment(m, translation, data) {
return m;
}

return monsterDataDB.data[normalize(data.name)].env;
return monsterDataDB[normalize(data.name)].env;
}


Expand Down

0 comments on commit e0aa87f

Please sign in to comment.