Browse Source

Fixed bug which prevented players from leveling up

Any affected players will get their levels back when they gain some
more XP in that particular skill.
TfT_02 11 years ago
parent
commit
810c74dc2a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/gmail/nossr50/util/EventUtils.java

+ 1 - 1
src/main/java/com/gmail/nossr50/util/EventUtils.java

@@ -119,7 +119,7 @@ public class EventUtils {
             profile.setSkillXpLevel(skill, profile.getSkillXpLevelRaw(skill) + event.getRawXpGained());
             profile.setSkillXpLevel(skill, profile.getSkillXpLevelRaw(skill) + event.getRawXpGained());
         }
         }
 
 
-        return isCancelled;
+        return !isCancelled;
     }
     }
 
 
     public static McMMOPlayerAbilityDeactivateEvent callAbilityDeactivateEvent(Player player, AbilityType ability) {
     public static McMMOPlayerAbilityDeactivateEvent callAbilityDeactivateEvent(Player player, AbilityType ability) {