Fixed Heroes max health applied twice

This commit is contained in:
Jules 2024-07-27 12:42:51 -07:00
parent be3aba8ab6
commit 00fdc120f4

View File

@ -61,8 +61,9 @@ public class HeroesHook implements RPGHandler, Listener, AttackHandler {
hero.addMaxMana("MMOItems", (int) data.getStats().getStat(ItemStats.MAX_MANA));
hero.removeMaxStamina("MMOItems");
hero.addMaxStamina("MMOItems", (int) data.getStats().getStat(MAX_STAMINA));
// Backwards compatibility. Max health is operated by MythicLib
hero.removeMaxHealth("MMOItems");
hero.addMaxHealth("MMOItems", data.getStats().getStat(ItemStats.MAX_HEALTH));
}
@Override