From 18138b289a0d9ee444b332c1d1cd97533645bc4a Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Sun, 26 May 2013 18:36:49 +0200 Subject: [PATCH] Get correct xp amount. This is pretty important. --- .../java/com/gmail/nossr50/datatypes/player/PlayerProfile.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java b/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java index 6c1d085ad..db95f5660 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java +++ b/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java @@ -313,8 +313,7 @@ public class PlayerProfile { if (now - gain.getTime() >= age) { gainsIterator.remove(); - // Because gainedSkillsXp contains this SkillType, we assume that rollingSkillsXp must also have this SkillType - xp += rollingSkillsXp.get(skillGains.getKey()); + xp += gain.getXp(); } else { break;