Skip to content

Commit

Permalink
fix: PartyFinderStats doesn't check spirit pet rarity
Browse files Browse the repository at this point in the history
  • Loading branch information
My-Name-Is-Jeff committed Jan 14, 2024
1 parent fae535b commit 0a94d1f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit 0a94d1f

Please sign in to comment.