Release 0.0.5
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user