aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2023-08-24 03:26:14 +1000
committerGitHub <noreply@github.com>2023-08-23 19:26:14 +0200
commit10defb84a6f3e742838b969110133351ed6e38a1 (patch)
tree6a0bf37b0f13f0d76d93c1a5a822cab0ef63a240 /src
parentc162193e5e08d0ab3134b43fa9fe8cdb6919ddbe (diff)
downloadNotEnoughUpdates-10defb84a6f3e742838b969110133351ed6e38a1.tar.gz
NotEnoughUpdates-10defb84a6f3e742838b969110133351ed6e38a1.tar.bz2
NotEnoughUpdates-10defb84a6f3e742838b969110133351ed6e38a1.zip
This fixes some issue with pet messages not showing up (#802)
idk
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java
index fadf8b1b..016c17f0 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java
@@ -1145,7 +1145,7 @@ public class PetInfoOverlay extends TextOverlay {
setCurrentPet(getClosestPetIndex(pet, rarity.petId, "", lastLevelHovered));
if (PetInfoOverlay.config.selectedPet == -1) {
setCurrentPet(getClosestPetIndex(pet, rarity.petId - 1, "", lastLevelHovered));
- if (!"PET_ITEM_TIER_BOOST".equals(getCurrentPet().petItem)) {
+ if (getCurrentPet() != null && !"PET_ITEM_TIER_BOOST".equals(getCurrentPet().petItem)) {
PetInfoOverlay.config.selectedPet = -1;
Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(
EnumChatFormatting.RED + "[NEU] Can't find pet \u00a7" + petStringMatch +