From db4c1d757b8865364e55d37a6c721f7626dc8414 Mon Sep 17 00:00:00 2001 From: IceTank <61137113+IceTank@users.noreply.github.com> Date: Sat, 16 May 2026 01:48:34 +0200 Subject: [PATCH 1/2] Enable ModuleNotifier by default --- .../kotlin/com/lambda/module/modules/client/ModuleNotifier.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/lambda/module/modules/client/ModuleNotifier.kt b/src/main/kotlin/com/lambda/module/modules/client/ModuleNotifier.kt index a7861b00e..2feb35b4c 100644 --- a/src/main/kotlin/com/lambda/module/modules/client/ModuleNotifier.kt +++ b/src/main/kotlin/com/lambda/module/modules/client/ModuleNotifier.kt @@ -36,7 +36,8 @@ import java.awt.Color object ModuleNotifier : Module( name = "ModuleNotifier", description = "Notifies you when a module is enabled or disabled", - tag = ModuleTag.CLIENT + tag = ModuleTag.CLIENT, + enabledByDefault = true ) { var notifyTarget by setting("Notify Target", setOf(NotifyTarget.ActionBar), NotifyTarget.entries.toSet(), description = "Where to send notifications when modules are toggled") From 997b95f3002cc117227777ee6bd7dd73db144545 Mon Sep 17 00:00:00 2001 From: IceTank <61137113+IceTank@users.noreply.github.com> Date: Sat, 16 May 2026 01:54:05 +0200 Subject: [PATCH 2/2] Use buildText --- .../com/lambda/module/modules/client/ModuleNotifier.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/com/lambda/module/modules/client/ModuleNotifier.kt b/src/main/kotlin/com/lambda/module/modules/client/ModuleNotifier.kt index 2feb35b4c..46f635b64 100644 --- a/src/main/kotlin/com/lambda/module/modules/client/ModuleNotifier.kt +++ b/src/main/kotlin/com/lambda/module/modules/client/ModuleNotifier.kt @@ -21,7 +21,6 @@ import com.lambda.event.events.ModuleEvent import com.lambda.event.listener.SafeListener.Companion.listen import com.lambda.module.Module import com.lambda.module.tag.ModuleTag -import com.lambda.threading.runSafe import com.lambda.util.Communication.log import com.lambda.util.Describable import com.lambda.util.NamedEnum @@ -29,7 +28,6 @@ import com.lambda.util.text.TextBuilder import com.lambda.util.text.buildText import com.lambda.util.text.color import com.lambda.util.text.literal -import net.minecraft.text.Text import net.minecraft.util.Colors import java.awt.Color @@ -66,10 +64,10 @@ object ModuleNotifier : Module( private fun logToTargets(module: Module, action: TextBuilder.() -> Unit) { if (NotifyTarget.Chat in notifyTarget) { - module.log(TextBuilder().apply(action).build()) + module.log(buildText(action)) } if (NotifyTarget.ActionBar in notifyTarget) { - module.log(TextBuilder().apply(action).build(), inGameOverlay = true) + module.log(buildText(action), inGameOverlay = true) } } } \ No newline at end of file