From 3d7cbe04f179c2483cbab4044acde60a9d543b0d Mon Sep 17 00:00:00 2001 From: kwaroran Date: Fri, 23 Jun 2023 22:45:18 +0900 Subject: [PATCH] [fix] lorebook import order fix --- src/ts/process/lorebook.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/process/lorebook.ts b/src/ts/process/lorebook.ts index 8f0a71ff..8b887da7 100644 --- a/src/ts/process/lorebook.ts +++ b/src/ts/process/lorebook.ts @@ -213,7 +213,7 @@ export async function importLoreBook(mode:'global'|'local'|'sglobal'){ lore.push({ key: currentLore.key ? currentLore.key.join(', ') : currentLore.keywords ? currentLore.keywords.join(', ') : '', - insertorder: currentLore.order || currentLore.priority || 0, + insertorder: currentLore.order ?? currentLore.priority ?? 0, comment: currentLore.comment || currentLore.name || '', content: currentLore.content || currentLore.entry || '', mode: "normal",