This commit is contained in:
TfT_02 2013-10-27 12:32:17 +01:00
parent 5d059d8537
commit ce3463ad6d
2 changed files with 3 additions and 4 deletions

View File

@ -310,11 +310,9 @@ public class PlayerProfile {
/**
* Remove experience gains older than a given time
* This is used for diminished XP returns
*
* @param age Age in milliseconds that gains older than should be removed
*/
public void purgeExpiredXpGains() {
SkillXpGain gain = null;
SkillXpGain gain;
while ((gain = gainedSkillsXp.poll()) != null) {
rollingSkillsXp.put(gain.getSkill(), getRegisteredXpGain(gain.getSkill()) - gain.getXp());
}

View File

@ -53,7 +53,8 @@ public class SelfListener implements Listener {
final float rawXp = event.getRawXpGained();
if (rawXp < 0) {
return; // Don't calculate for XP subtraction
// Don't calculate for XP subtraction
return;
}
Player player = event.getPlayer();