diff options
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/event/carnival/CarnivalQuickStart.kt | 3 |
1 files changed, 3 insertions, 0 deletions
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 ee2a9028a..2257772c8 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() } |