From 2b55da7499aafd20000233ba065a0f54c016d565 Mon Sep 17 00:00:00 2001 From: Joshua Date: Wed, 24 Mar 2021 19:39:27 -0500 Subject: [PATCH] Debug build for quests --- .../net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java b/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java index fffe96d5..37a3c373 100644 --- a/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java +++ b/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java @@ -192,7 +192,7 @@ public class RPGPlaceholders extends PlaceholderExpansion { Log.info("Total size of objective: "+ data.getCurrent().getQuest().getObjectives().size() * 100L); return data.hasCurrent() ? MythicLib.plugin.getMMOConfig().decimal - .format((int) (double) data.getCurrent().getObjectiveNumber() / data.getCurrent().getQuest().getObjectives().size() * 100L) : "0"; + .format( (double) data.getCurrent().getObjectiveNumber() / data.getCurrent().getQuest().getObjectives().size() * 100L) : "0"; } else if (identifier.equals("quest_objective")) {