mirror of
https://github.com/Luzifer/runemetrics.git
synced 2024-12-22 04:01:21 +00:00
Fix: retain target level on level updates
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
f6d22c9e35
commit
a4df14377f
1 changed files with 3 additions and 2 deletions
|
@ -121,9 +121,10 @@ func getPlayerInfo(name string, activities int) (*playerInfo, error) {
|
|||
|
||||
if playerInfoCache != nil {
|
||||
for i, nSk := range out.SkillValues {
|
||||
if oSk := playerInfoCache.GetSkill(nSk.ID); oSk.XP == nSk.XP {
|
||||
oSk := playerInfoCache.GetSkill(nSk.ID)
|
||||
out.SkillValues[i].TargetLevel = oSk.TargetLevel
|
||||
if oSk.XP == nSk.XP {
|
||||
out.SkillValues[i].Updated = oSk.Updated
|
||||
out.SkillValues[i].TargetLevel = oSk.TargetLevel
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue