aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
diff options
context:
space:
mode:
authorjani270 <69345714+jani270@users.noreply.github.com>2024-03-08 09:01:52 +0100
committerGitHub <noreply@github.com>2024-03-08 09:01:52 +0100
commita1f9ab2fb2052c2362caaf0a97dada95b1e9fcab (patch)
tree52b11aef5fc84f87aa8910185572391724704e69 /src/main/java/io
parent5c8c3e81a891da36fa752d5f67886bc02ed504dd (diff)
downloadNotEnoughUpdates-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.java2
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;
}
}