Fixed a quest progression display issue

This commit is contained in:
Indyuce 2020-03-19 12:25:20 +01:00
parent 4c4889b600
commit 17d99ace1b

View File

@ -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)) {