diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-03-30 01:47:12 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-03-30 01:47:12 +0100 |
commit | 1cc08397546c449ee2badbf29469c5886a46231d (patch) | |
tree | 91d9f56fe593c3042998c8a9b208733a18c6cafc | |
parent | f55e88236ffe32ca0052143ce29d79d6efc1ac4a (diff) | |
download | skyhanni-1cc08397546c449ee2badbf29469c5886a46231d.tar.gz skyhanni-1cc08397546c449ee2badbf29469c5886a46231d.tar.bz2 skyhanni-1cc08397546c449ee2badbf29469c5886a46231d.zip |
removed word reverse feature for this first april
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/visualwords/ModifyVisualWords.kt | 13 |
1 files changed, 6 insertions, 7 deletions
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 } |