Explorar o código

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 %!s(int64=12) %!d(string=hai) anos
pai
achega
810c74dc2a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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());
         }
 
-        return isCancelled;
+        return !isCancelled;
     }
 
     public static McMMOPlayerAbilityDeactivateEvent callAbilityDeactivateEvent(Player player, AbilityType ability) {