From 0a94d1fe92442fd367816d8620672c84c8cb9189 Mon Sep 17 00:00:00 2001 From: My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> Date: Sat, 13 Jan 2024 20:19:26 -0500 Subject: [PATCH] fix: PartyFinderStats doesn't check spirit pet rarity --- .../skytilsmod/features/impl/dungeons/PartyFinderStats.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/PartyFinderStats.kt b/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/PartyFinderStats.kt index 855d16e6e..44b48f2ca 100644 --- a/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/PartyFinderStats.kt +++ b/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/PartyFinderStats.kt @@ -22,6 +22,7 @@ import gg.essential.universal.UChat import gg.essential.universal.wrappers.message.UMessage import gg.essential.universal.wrappers.message.UTextComponent import gg.skytils.hypixel.types.skyblock.Member +import gg.skytils.hypixel.types.skyblock.Pet import gg.skytils.skytilsmod.Skytils import gg.skytils.skytilsmod.Skytils.Companion.failPrefix import gg.skytils.skytilsmod.Skytils.Companion.mc @@ -124,7 +125,7 @@ object PartyFinderStats { ) }?: component.append("§cNo Pet Equipped!") - profileData.pets_data.pets.find{ it.type == "SPIRIT" }?.run { + profileData.pets_data.pets.find(Pet::isSpirit)?.run { component.append(" §7(§6Spirit§7)\n\n") } ?: component.append(" §7(No Spirit)\n\n")