Skip to content

Commit

Permalink
"fix": taming level crash (NotEnoughUpdates#1040)
Browse files Browse the repository at this point in the history
  • Loading branch information
jani270 authored Mar 8, 2024
1 parent 5c8c3e8 commit a1f9ab2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,7 @@ public void updateTamingLevel() {
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;
}
}
Expand Down

0 comments on commit a1f9ab2

Please sign in to comment.