From 6410dcf999a08d4b6625fdc25f2db148c9df8338 Mon Sep 17 00:00:00 2001 From: martimavocado <39881008+martimavocado@users.noreply.github.com> Date: Thu, 20 Jun 2024 22:35:54 +0100 Subject: Feature: Block opening chocolate factory without Mythic Rabbit equipped (#2124) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../skyhanni/features/event/hoppity/MythicRabbitPetWarning.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/event') diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/MythicRabbitPetWarning.kt b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/MythicRabbitPetWarning.kt index 59e951d21..8162f3a05 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/MythicRabbitPetWarning.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/MythicRabbitPetWarning.kt @@ -15,14 +15,16 @@ object MythicRabbitPetWarning { if (lastCheck.passedSince() < 30.seconds) return - if (!PetAPI.isCurrentPet(mythicRabbit)) { + if (!correctPet()) { lastCheck = SimpleTimeMark.now() warn() } } + fun correctPet() = PetAPI.isCurrentPet(mythicRabbit) + private fun warn() { - ChatUtils.chat("Use a mythic Rabbit pet for more chocolate!") + ChatUtils.chat("Use a §dMythic Rabbit Pet §efor more chocolate!") LorenzUtils.sendTitle("§cNo Rabbit Pet!", 3.seconds) } } -- cgit