diff options
| author | Linnea Gräf <nea@nea.moe> | 2024-04-12 08:00:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-12 08:00:46 +0200 |
| commit | 3cd5ec334fb6cbbdf4e44f471c9895cca8db1000 (patch) | |
| tree | ccd1d53894102afbe86e3f9781fa1f6a5b015ea3 /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures | |
| parent | 810d9c3bdbfc2323bf9ddc76f944e39aa8b86fbf (diff) | |
| download | notenoughupdates-3cd5ec334fb6cbbdf4e44f471c9895cca8db1000.tar.gz notenoughupdates-3cd5ec334fb6cbbdf4e44f471c9895cca8db1000.tar.bz2 notenoughupdates-3cd5ec334fb6cbbdf4e44f471c9895cca8db1000.zip | |
Fix skill experience detection (#1085)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java index 6f539121..fb12906a 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java @@ -879,6 +879,7 @@ public class PetInfoOverlay extends TextOverlay { } } + // TODO: Add support for sub menus in /tab, so we can configure "Always show most recently gained skill" in the Skill tab widget public void updatePetLevels() { HashMap<String, XPInformation.SkillInfo> skillInfoMap = XPInformation.getInstance().getSkillInfoMap(); @@ -888,7 +889,7 @@ public class PetInfoOverlay extends TextOverlay { for (Map.Entry<String, XPInformation.SkillInfo> entry : skillInfoMap.entrySet()) { if (entry.getValue().level == 50 && entry.getValue().fromApi) continue; - float skillXp = entry.getValue().totalXp; + float skillXp = (float) entry.getValue().totalXp; if (skillInfoMapLast.containsKey(entry.getKey())) { float skillXpLast = skillInfoMapLast.get(entry.getKey()); |
