[fix] LagNotifier default timeout

This commit is contained in:
living 2020-11-29 21:32:09 -05:00 committed by GitHub
parent 6850761a79
commit f206d1a175
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ object LagNotifier : Module() {
private val pauseTakeoff = register(Settings.b("PauseElytraTakeoff", true))
private val pauseBaritone = register(Settings.b("PauseBaritone", true))
private val feedback = register(Settings.booleanBuilder("PauseFeedback").withValue(true).withVisibility { pauseBaritone.value })
private val timeout = register(Settings.floatBuilder("Timeout").withValue(2.0f).withRange(0.0f, 10.0f))
private val timeout = register(Settings.floatBuilder("Timeout").withValue(3.5f).withRange(0.0f, 10.0f))
private val pingTimer = TimerUtils.TickTimer(TimerUtils.TimeUnit.SECONDS)
private var lastPacketTimer = TimerUtils.TickTimer()
@ -119,4 +119,4 @@ object LagNotifier : Module() {
}
private fun timeDifference(timeIn: Long) = MathUtils.round((System.currentTimeMillis() - timeIn) / 1000.0, 1)
}
}