Fix levelcaps causing infinite loop

Resolves MCCORE-28
This commit is contained in:
NuclearW 2012-02-19 14:53:07 -05:00
parent b08aead536
commit d864a2391e

View File

@ -335,6 +335,9 @@ public class Skills
McMMOPlayerLevelUpEvent eventToFire = new McMMOPlayerLevelUpEvent(player, skillType); McMMOPlayerLevelUpEvent eventToFire = new McMMOPlayerLevelUpEvent(player, skillType);
Bukkit.getPluginManager().callEvent(eventToFire); Bukkit.getPluginManager().callEvent(eventToFire);
} else
{
PP.removeXP(skillType, PP.getXpToLevel(skillType));
} }
} }