From a1f9ab2fb2052c2362caaf0a97dada95b1e9fcab Mon Sep 17 00:00:00 2001 From: jani270 <69345714+jani270@users.noreply.github.com> Date: Fri, 8 Mar 2024 09:01:52 +0100 Subject: "fix": taming level crash (#1040) --- .../moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit