Fallback sur compendium system
quand le compendium configuré n'existe plus, fallback sur le compendium du système
This commit is contained in:
parent
bb7f4c42ad
commit
b07cea40e2
@ -52,7 +52,7 @@ export class SystemCompendiums extends FormApplication {
|
||||
}
|
||||
|
||||
static getPack(compendium) {
|
||||
return game.packs.get(SystemCompendiums.getCompendium(compendium));
|
||||
return game.packs.get(SystemCompendiums.getCompendium(compendium)) ?? game.packs.get(SystemCompendiums._getDefaultCompendium(compendium));
|
||||
}
|
||||
|
||||
static async getPackContent(compendium, docType) {
|
||||
|
Loading…
Reference in New Issue
Block a user