From 1229c0bcd88602e26a3d0842c07d168a9fd0bbf5 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Fri, 20 Jan 2023 02:21:55 +0100 Subject: [PATCH] AntiDisconnect: Use formatter in the button presses setting We now show "$x presses" by using the newly added setting formatter --- .../com/lambda/client/module/modules/misc/AntiDisconnect.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/lambda/client/module/modules/misc/AntiDisconnect.kt b/src/main/kotlin/com/lambda/client/module/modules/misc/AntiDisconnect.kt index 4c3950b46..11a1e756d 100644 --- a/src/main/kotlin/com/lambda/client/module/modules/misc/AntiDisconnect.kt +++ b/src/main/kotlin/com/lambda/client/module/modules/misc/AntiDisconnect.kt @@ -8,5 +8,5 @@ object AntiDisconnect : Module( description = "Prevents you from accidently disconnecting", category = Category.MISC ) { - val presses by setting("Button Presses", 3, 1..20, 1) + val presses by setting("Button Presses", 3, 1..20, 1, formatter = {i -> "$i presses"}) }