|
@@ -65,6 +65,10 @@ public class McMMOPlayer {
|
|
* @param xp Experience amount to process
|
|
* @param xp Experience amount to process
|
|
*/
|
|
*/
|
|
public void beginXpGain(SkillType skillType, int xp) {
|
|
public void beginXpGain(SkillType skillType, int xp) {
|
|
|
|
+ if (xp == 0) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
// Return if the experience has been shared
|
|
// Return if the experience has been shared
|
|
if (party != null && ShareHandler.handleXpShare(xp, this, skillType)) {
|
|
if (party != null && ShareHandler.handleXpShare(xp, this, skillType)) {
|
|
return;
|
|
return;
|
|
@@ -82,10 +86,6 @@ public class McMMOPlayer {
|
|
public void beginUnsharedXpGain(SkillType skillType, int xp) {
|
|
public void beginUnsharedXpGain(SkillType skillType, int xp) {
|
|
xp = modifyXpGain(skillType, xp);
|
|
xp = modifyXpGain(skillType, xp);
|
|
|
|
|
|
- if (xp == 0) {
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
applyXpGain(skillType, xp);
|
|
applyXpGain(skillType, xp);
|
|
}
|
|
}
|
|
|
|
|