diff --git a/src/main/java/net/Indyuce/mmocore/gui/PlayerStats.java b/src/main/java/net/Indyuce/mmocore/gui/PlayerStats.java index f0660775..e60242db 100644 --- a/src/main/java/net/Indyuce/mmocore/gui/PlayerStats.java +++ b/src/main/java/net/Indyuce/mmocore/gui/PlayerStats.java @@ -112,8 +112,7 @@ public class PlayerStats extends EditableInventory { Placeholders holders = new Placeholders(); for (StatType stat : StatType.values()) { - double extra = stats.getExtraStat(stat); - double base = stats.getBase(stat); + double base = stats.getBase(stat), total = stats.getInstance(stat).getTotal(base), extra = total - base; holders.register(stat.name().toLowerCase(), stat.format(extra + base)); holders.register(stat.name().toLowerCase() + "_base", stat.format(base)); holders.register(stat.name().toLowerCase() + "_extra", stat.format(extra));