From 17d99ace1b501cf5de86d40af592b14f680c4c0f Mon Sep 17 00:00:00 2001 From: Indyuce Date: Thu, 19 Mar 2020 12:25:20 +0100 Subject: [PATCH] Fixed a quest progression display issue --- src/main/java/net/Indyuce/mmocore/gui/QuestViewer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/Indyuce/mmocore/gui/QuestViewer.java b/src/main/java/net/Indyuce/mmocore/gui/QuestViewer.java index 54fdcef3..026ab6ff 100644 --- a/src/main/java/net/Indyuce/mmocore/gui/QuestViewer.java +++ b/src/main/java/net/Indyuce/mmocore/gui/QuestViewer.java @@ -152,7 +152,7 @@ public class QuestViewer extends EditableInventory { if (data.getQuestData().hasCurrent(quest)) { holders.register("objective", data.getQuestData().getCurrent().getFormattedLore()); - holders.register("progress", (int) (double) data.getQuestData().getCurrent().getObjectiveNumber() / quest.getObjectives().size() * 100); + holders.register("progress", (int) ((double) data.getQuestData().getCurrent().getObjectiveNumber() / quest.getObjectives().size() * 100.)); } if (data.getQuestData().hasFinished(quest)) {