From 0ef5b8ba982ef47ec8ea0afba2f49d4531754bf3 Mon Sep 17 00:00:00 2001 From: Archy-X Date: Wed, 20 Sep 2023 00:29:03 -0400 Subject: [PATCH] Fix bug with mana and stat modifiers --- .../main/java/com/archyx/aureliumskills/data/PlayerData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bukkit/src/main/java/com/archyx/aureliumskills/data/PlayerData.java b/bukkit/src/main/java/com/archyx/aureliumskills/data/PlayerData.java index f432f168b..551f918c2 100644 --- a/bukkit/src/main/java/com/archyx/aureliumskills/data/PlayerData.java +++ b/bukkit/src/main/java/com/archyx/aureliumskills/data/PlayerData.java @@ -202,7 +202,7 @@ public boolean removeStatModifier(String name, boolean reload) { new Luck(plugin).reload(player); } else if (modifier.getStat() == Stats.WISDOM) { // Remove overflow mana if disallowed by config - if (!OptionL.getBoolean(Option.WISDOM_ALLOW_OVER_MAX_MANA)) { + if (!OptionL.getBoolean(Option.WISDOM_ALLOW_OVER_MAX_MANA) && mana > getMaxMana()) { setMana(getMaxMana()); } }