Skip to content

Commit

Permalink
Added world disconnect check to Timer. (CCBlueX#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
mems01 authored Jul 31, 2021
1 parent a79f612 commit 4f25029
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
*/
package net.ccbluex.liquidbounce.features.module.modules.world

import net.ccbluex.liquidbounce.event.WorldDisconnectEvent
import net.ccbluex.liquidbounce.event.handler
import net.ccbluex.liquidbounce.event.repeatable
import net.ccbluex.liquidbounce.features.module.Category
import net.ccbluex.liquidbounce.features.module.Module
Expand All @@ -44,4 +46,8 @@ object ModuleTimer : Module("Timer", Category.WORLD) {
mc.timer.timerSpeed = 1f
}

val disconnectHandler = handler<WorldDisconnectEvent> {
enabled = false
}

}

0 comments on commit 4f25029

Please sign in to comment.