mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-24 00:15:16 +01:00
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