diff options
author | jani270 <69345714+jani270@users.noreply.github.com> | 2024-03-08 09:01:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 09:01:52 +0100 |
commit | a1f9ab2fb2052c2362caaf0a97dada95b1e9fcab (patch) | |
tree | 52b11aef5fc84f87aa8910185572391724704e69 /src/main/java/io | |
parent | 5c8c3e81a891da36fa752d5f67886bc02ed504dd (diff) | |
download | NotEnoughUpdates-a1f9ab2fb2052c2362caaf0a97dada95b1e9fcab.tar.gz NotEnoughUpdates-a1f9ab2fb2052c2362caaf0a97dada95b1e9fcab.tar.bz2 NotEnoughUpdates-a1f9ab2fb2052c2362caaf0a97dada95b1e9fcab.zip |
"fix": taming level crash (#1040)
Diffstat (limited to 'src/main/java/io')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java index 8530bcb1..90efc59c 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java @@ -1267,7 +1267,7 @@ public class SkyblockProfiles { if (!getUuid().equals(Minecraft.getMinecraft().thePlayer.getUniqueID().toString().replace("-", ""))) return; if (!getLatestProfile().skillsApiEnabled()) return; - if (getLevelingInfo().get("taming") != null) { //idfk what else could cause an NPE here + if (getLevelingInfo() != null && getLevelingInfo().get("taming") != null) { //idfk what else could cause an NPE here PetInfoOverlay.getConfig().tamingLevel = (int) getLevelingInfo().get("taming").level; } } |