Added the ability to exclude world compendiums in the Compendium Browser Settings

This commit is contained in:
WBHarry 2026-02-12 19:27:03 +01:00
parent 60cd28ae82
commit e0b3d33f80
3 changed files with 14 additions and 5 deletions

View file

@ -24,7 +24,8 @@ export default class CompendiumBrowserSettings extends foundry.abstract.DataMode
const pack = game.packs.get(item.pack);
if (!pack) return false;
const excludedSourceData = this.excludedSources[pack.metadata.packageName];
const packageName = pack.metadata.packageType === 'world' ? 'world' : pack.metadata.packageName;
const excludedSourceData = this.excludedSources[packageName];
if (excludedSourceData && excludedSourceData.excludedDocumentTypes.includes(pack.metadata.type)) return true;
const excludedPackData = this.excludedPacks[item.pack];