Przeglądaj źródła

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 12 lat temu
rodzic
commit
810c74dc2a

+ 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) {