Release 0.0.5

This commit is contained in:
2026-04-20 21:02:04 +00:00
parent 5e1096ebae
commit f3ed47420b
4 changed files with 28 additions and 19 deletions

View File

@@ -26,6 +26,8 @@ function worldCollectionEntries() {
if (!game.world) return [];
const entries = [];
for (const collection of game.collections ?? []) {
const collectionDocumentName = collection.documentName ?? null;
if (collectionDocumentName === "ChatMessage") continue;
const docs = Array.from(collection.values?.() ?? []);
for (const doc of docs) {
entries.push({
@@ -34,7 +36,7 @@ function worldCollectionEntries() {
ownerType: "world",
ownerId: game.world.id,
systemId: game.world.system,
subtype: doc.documentName?.toLowerCase() ?? collection.documentName?.toLowerCase() ?? "document"
subtype: doc.documentName?.toLowerCase() ?? collectionDocumentName?.toLowerCase() ?? "document"
},
sourceLabel: `${doc.documentName ?? "Document"} ${doc.id}`,
sourceName: doc.name ?? null,