mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 08:39:49 +01:00
Fix levelcaps causing infinite loop
Resolves MCCORE-28
This commit is contained in:
parent
b08aead536
commit
d864a2391e
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user