From 453dc9717d2105b35b36f953245de131685d756d Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 2 Oct 2023 14:58:22 +0000 Subject: [PATCH] Format code [skip actions] --- .../grasscutter/game/quest/QuestManager.java | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/main/java/emu/grasscutter/game/quest/QuestManager.java b/src/main/java/emu/grasscutter/game/quest/QuestManager.java index a2e3c56e1..2ac3601ab 100644 --- a/src/main/java/emu/grasscutter/game/quest/QuestManager.java +++ b/src/main/java/emu/grasscutter/game/quest/QuestManager.java @@ -295,12 +295,17 @@ public final class QuestManager extends BasePlayerManager { } public void enableQuests() { - GameData.getBeginCondQuestMap().keySet().forEach(x -> { - if (x.contains("QUEST_COND_STATE_NOT_EQUAL")) - this.triggerEvent(QuestCond.QUEST_COND_STATE_NOT_EQUAL, null, Integer.parseInt(x.substring(26))); - if (x.contains("QUEST_COND_STATE_EQUAL")) - this.triggerEvent(QuestCond.QUEST_COND_STATE_EQUAL, null, Integer.parseInt(x.substring(22))); - }); + GameData.getBeginCondQuestMap() + .keySet() + .forEach( + x -> { + if (x.contains("QUEST_COND_STATE_NOT_EQUAL")) + this.triggerEvent( + QuestCond.QUEST_COND_STATE_NOT_EQUAL, null, Integer.parseInt(x.substring(26))); + if (x.contains("QUEST_COND_STATE_EQUAL")) + this.triggerEvent( + QuestCond.QUEST_COND_STATE_EQUAL, null, Integer.parseInt(x.substring(22))); + }); this.triggerEvent(QuestCond.QUEST_COND_NONE, null, 0); this.triggerEvent(QuestCond.QUEST_COND_PLAYER_LEVEL_EQUAL_GREATER, null, 1); }