From 810c74dc2a4e4786a58ac869f455b019c64363dc Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Sat, 19 Oct 2013 14:08:04 +0200 Subject: [PATCH] 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. --- src/main/java/com/gmail/nossr50/util/EventUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/util/EventUtils.java b/src/main/java/com/gmail/nossr50/util/EventUtils.java index fb52e3ca3..0bca6c15c 100644 --- a/src/main/java/com/gmail/nossr50/util/EventUtils.java +++ b/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) {