From 504ee92815d7a8130bdc764b2673e76037450577 Mon Sep 17 00:00:00 2001 From: Toray-Life Date: Wed, 14 Jun 2023 19:23:39 +0400 Subject: [PATCH] Fix quest objective text was not moved to a new line --- .../java/mchorse/mappet/client/gui/quests/GuiQuestCard.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/mchorse/mappet/client/gui/quests/GuiQuestCard.java b/src/main/java/mchorse/mappet/client/gui/quests/GuiQuestCard.java index 8640f552..ed0f9b21 100644 --- a/src/main/java/mchorse/mappet/client/gui/quests/GuiQuestCard.java +++ b/src/main/java/mchorse/mappet/client/gui/quests/GuiQuestCard.java @@ -49,11 +49,15 @@ public static void fillQuest(GuiElement element, Quest quest, boolean forceRewar element.add(new GuiText(mc).text(DialogueFragment.process(characterQuest.story)).color(0xaaaaaa, true).marginBottom(12)); element.add(Elements.label(IKey.lang("mappet.gui.quests.objectives.title"))); + StringBuilder objectives = new StringBuilder(); + for (AbstractObjective objective : characterQuest.objectives) { - element.add(Elements.label(IKey.str("- " + objective.stringify(mc.player))).color(0xaaaaaa)); + objectives.append(IKey.str("- " + objective.stringify(mc.player)).toString() + "\n"); } + element.add(new GuiText(mc).text(objectives.toString()).color(0xaaaaaa, true)); + if (!Mappet.questsPreviewRewards.get() && !forceReward) { return;