diff --git a/src/plugins/quests/quest-journal-plugin.ts b/src/plugins/quests/quest-journal-plugin.ts index 4294d73e4..2c025f364 100644 --- a/src/plugins/quests/quest-journal-plugin.ts +++ b/src/plugins/quests/quest-journal-plugin.ts @@ -6,6 +6,9 @@ import { pluginActions } from '@server/game-server'; export const action: buttonAction = (details) => { const { player, buttonId } = details; const [questData] = pluginActions.quest.filter((quest) => quest.quest.questTabId === buttonId); + if(!questData) { + return; + } const quest = questData.quest; const [playerQuest] = player.quests.filter(