diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/carnival/CarnivalQuickStart.kt b/src/main/java/at/hannibal2/skyhanni/features/event/carnival/CarnivalQuickStart.kt index ee2a9028ae7e..2257772c8f3c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/carnival/CarnivalQuickStart.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/carnival/CarnivalQuickStart.kt @@ -32,6 +32,7 @@ object CarnivalQuickStart { private val cowboy by repoGroup.pattern("cowboy", "Carnival Cowboy") private var lastChat = SimpleTimeMark.farPast() + private var lastClicked = SimpleTimeMark.farPast() @SubscribeEvent fun onEntityClick(event: EntityClickEvent) { @@ -44,6 +45,8 @@ object CarnivalQuickStart { pirate.matches(mob.name) -> "carnival_pirateman" else -> return } + if (lastClicked.passedSince() < 1.seconds) return + lastClicked = SimpleTimeMark.now() HypixelCommands.npcOption(type, "r_2_1") event.cancel() }