From 45b6476be3903182f54fa119ac3ff0596080141b Mon Sep 17 00:00:00 2001 From: Daimakaicho Date: Wed, 25 Aug 2021 16:57:55 +0200 Subject: [PATCH] fix null JournalEntry error when rolling story table --- scripts/story/story-builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/story/story-builder.js b/scripts/story/story-builder.js index 36125ec6..f8a2c813 100644 --- a/scripts/story/story-builder.js +++ b/scripts/story/story-builder.js @@ -25,7 +25,7 @@ export class StoryBuilder { for (const entry of draw.results) { /** entity type 2 is when an entity in the world is linked */ if (entry.data.type === 1 && entry.data.collection === 'JournalEntry') { - const storyJournal = game.journal.get(entry.resultId) + const storyJournal = game.journal.get(entry.data.resultId) if (storyJournal) { journalContent = storyJournal.data.content } else {