diff options
| author | efefury <69400149+efefury@users.noreply.github.com> | 2022-07-10 16:04:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-11 00:04:00 +1000 |
| commit | 04d6f54c067a5cdab61186eb37f67fef11affa57 (patch) | |
| tree | 7fac9ce78eab682d64d4d0b69787636895247ee1 /src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java | |
| parent | 6e40cd5d2426eee681b091acc6e0822d4d7c45b5 (diff) | |
| download | notenoughupdates-04d6f54c067a5cdab61186eb37f67fef11affa57.tar.gz notenoughupdates-04d6f54c067a5cdab61186eb37f67fef11affa57.tar.bz2 notenoughupdates-04d6f54c067a5cdab61186eb37f67fef11affa57.zip | |
ah profit cool gui display (#178)
Co-authored-by: Lulonaut <lulonaut@tutanota.de>
Co-authored-by: nopo <noahogno@gmail.com>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java index 8d24a082..19668019 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java @@ -559,7 +559,7 @@ public class PlayerStats { } GuiProfileViewer.PetLevel levelObj = GuiProfileViewer.getPetLevel(petname, tier, exp); - + if (levelObj == null) return null; float level = levelObj.level; float currentLevelRequirement = levelObj.currentLevelRequirement; float maxXP = levelObj.maxXP; @@ -702,6 +702,7 @@ public class PlayerStats { } Stats petBonus = getPetStatBonuses(petsInfo); + if (petBonus == null) return null; stats = stats.add(passiveBonuses).add(armorBonuses).add(talismanBonuses).add(petBonus).add(hotmBonuses); |
