From 574eef9b441362cf9371585b0a48fbc97e5e54cb Mon Sep 17 00:00:00 2001 From: Sorzon <64833512+Sorzon@users.noreply.github.com> Date: Mon, 11 May 2020 20:04:25 +0200 Subject: [PATCH] Implemented the same 'hidden doLocale' for the chatTimestamp module. (#813) --- .../me/zeroeightsix/kami/module/modules/chat/ChatTimestamp.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/chat/ChatTimestamp.kt b/src/main/java/me/zeroeightsix/kami/module/modules/chat/ChatTimestamp.kt index 1a07f96e7..9cec7374e 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/chat/ChatTimestamp.kt +++ b/src/main/java/me/zeroeightsix/kami/module/modules/chat/ChatTimestamp.kt @@ -27,7 +27,7 @@ class ChatTimestamp : Module() { private val secondColour = register(Settings.e("Second Colour", ColourCode.GRAY)) private val timeTypeSetting = register(Settings.e("Time Format", TimeUtil.TimeType.HHMM)) private val timeUnitSetting = register(Settings.e("Time Unit", TimeUtil.TimeUnit.H24)) - private val doLocale = register(Settings.b("Show AMPM", true)) + private val doLocale = register(Settings.booleanBuilder("Show AM/PM").withValue(true).withVisibility { timeUnitSetting.value == TimeUtil.TimeUnit.H12 }.build()) @EventHandler var listener = Listener(EventHook { event: ClientChatReceivedEvent ->