mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 08:36:45 +01:00
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.
This commit is contained in:
parent
100f2c7e56
commit
810c74dc2a
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user