forked from Upstream/mmocore
Fixed a quest progression display issue
This commit is contained in:
parent
4c4889b600
commit
17d99ace1b
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user