mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-30 12:44:45 +02:00
Made xp sharing less ugly by reworking McMMOPlayer xp methods
Notable consequence: checkXP and addLevel in ExperienceAPI are no longer needed and became deprecated
This commit is contained in:
@ -220,6 +220,6 @@ public final class TreeFeller {
|
||||
block.setType(Material.AIR);
|
||||
}
|
||||
|
||||
mcMMOPlayer.addXp(SkillType.WOODCUTTING, xp);
|
||||
mcMMOPlayer.beginXpGain(SkillType.WOODCUTTING, xp);
|
||||
}
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ public final class Woodcutting {
|
||||
checkForDoubleDrop(mcMMOPlayer, block);
|
||||
}
|
||||
|
||||
mcMMOPlayer.addXp(SkillType.WOODCUTTING, xp);
|
||||
mcMMOPlayer.beginXpGain(SkillType.WOODCUTTING, xp);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user