-levelsChanged instead of - levelsChanged

This commit is contained in:
TfT_02 2013-10-18 15:23:40 +02:00
parent 3b09012b35
commit e8e2dcff46

View File

@ -58,7 +58,7 @@ public class EventUtils {
if (isCancelled) {
PlayerProfile profile = UserManager.getPlayer(player).getProfile();
profile.modifySkill(skill, profile.getSkillLevel(skill) - (isLevelUp ? levelsChanged : - levelsChanged));
profile.modifySkill(skill, profile.getSkillLevel(skill) - (isLevelUp ? levelsChanged : -levelsChanged));
profile.setSkillXpLevel(skill, profile.getSkillXpLevelRaw(skill) + xpRemoved);
}