Skip to content

Commit

Permalink
This fixes some issue with pet messages not showing up (#802)
Browse files Browse the repository at this point in the history
idk
  • Loading branch information
NopoTheGamer authored Aug 23, 2023
1 parent c162193 commit 10defb8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ public void onChatReceived(ClientChatReceivedEvent event) {
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 +
Expand Down

0 comments on commit 10defb8

Please sign in to comment.