mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-02 01:46:45 +01:00
Cleanup
This commit is contained in:
parent
3525dc82b0
commit
ed1c072fd7
@ -521,6 +521,7 @@ public class McMMOPlayer {
|
||||
}
|
||||
|
||||
profile.setSkillXpLevel(skillType, profile.getSkillXpLevelRaw(skillType) + event.getRawXpGained());
|
||||
profile.registeredXpGain(skillType, event.getRawXpGained());
|
||||
|
||||
McMMOHud spoutHud = profile.getSpoutHud();
|
||||
|
||||
|
@ -313,9 +313,10 @@ public class PlayerProfile {
|
||||
|
||||
if (now - gain.getTime() >= age) {
|
||||
gainsIterator.remove();
|
||||
// Because gainedSkillsXp conatins this SkillType, we assume that rollingSkillsXp must also have this SkillType
|
||||
// Because gainedSkillsXp contains this SkillType, we assume that rollingSkillsXp must also have this SkillType
|
||||
xp += rollingSkillsXp.get(skillGains.getKey());
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -67,7 +67,5 @@ public class SelfListener implements Listener {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
|
||||
mcMMOPlayer.getProfile().registeredXpGain(skillType, event.getRawXpGained());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user