Update compendium-browser.js

Fix #4
master 2.2.1
Matheus Clemente 2024-02-11 01:55:56 -03:00
parent 378818672b
commit 650c42157c
1 changed files with 1 additions and 1 deletions

View File

@ -1016,7 +1016,7 @@ class CompendiumBrowser extends Application {
getNPCType(type) { getNPCType(type) {
if (type instanceof Object) { if (type instanceof Object) {
return game.i18n.localize(CONFIG.DND5E.creatureTypes[type.value]) ?? type.value; return CONFIG.DND5E.creatureTypes?.[type.value]?.label ?? game.i18n.localize(type.value);
} }
return type; return type;