From 1cc08397546c449ee2badbf29469c5886a46231d Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 30 Mar 2024 01:47:12 +0100 Subject: removed word reverse feature for this first april --- .../skyhanni/features/misc/visualwords/ModifyVisualWords.kt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/main/java/at/hannibal2') diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/visualwords/ModifyVisualWords.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/visualwords/ModifyVisualWords.kt index e6fcb8af5..2c31f078c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/visualwords/ModifyVisualWords.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/visualwords/ModifyVisualWords.kt @@ -4,12 +4,10 @@ import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.config.ConfigFileType import at.hannibal2.skyhanni.config.enums.OutsideSbFeature import at.hannibal2.skyhanni.events.HypixelJoinEvent -import at.hannibal2.skyhanni.mixins.hooks.FontRendererHook import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.StringUtils.convertToFormatted import at.hannibal2.skyhanni.utils.TimeLimitedCache import net.minecraftforge.fml.common.eventhandler.SubscribeEvent -import kotlin.random.Random import kotlin.time.Duration.Companion.minutes object ModifyVisualWords { @@ -51,12 +49,13 @@ object ModifyVisualWords { } } + // Disabled, as its only a novelty for 30 seconds and will annoy after that everyone. - if (LorenzUtils.isAprilFoolsDay && !FontRendererHook.cameFromChat && Random.nextDouble() < 0.02) { - modifiedText = modifiedText.replace(reverseRegex) { - it.groupValues[1] + it.groupValues[2].reversed() - } - } +// if (LorenzUtils.isAprilFoolsDay && !FontRendererHook.cameFromChat && Random.nextDouble() < 0.02) { +// modifiedText = modifiedText.replace(reverseRegex) { +// it.groupValues[1] + it.groupValues[2].reversed() +// } +// } textCache.put(originalText, modifiedText) return modifiedText } -- cgit