Properties loading optimizations by KitCat

This commit is contained in:
Vlyan
2025-09-05 09:53:48 +02:00
parent eb675f24ea
commit 30455759e8
3 changed files with 19 additions and 23 deletions

View File

@@ -189,12 +189,12 @@ export class HelpersL5r5e {
// Unknown pack object, iterate all packs
if (!document) {
for (const comp of game.packs) {
await Promise.all(game.packs.map(async (comp) => {
const tmpData = await comp.getDocument(id);
if (tmpData) {
document = HelpersL5r5e.createDocumentFromCompendium({ type, data: tmpData });
}
}
}));
}
// Final