From 8e6c7e50ad1f02ef369152223a60f670012700e1 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 16 Oct 2023 18:59:05 +0200 Subject: Fixed bug that prevented some users to start their game. --- .../mixins/hooks/MixinPatcherFontRendererHookHook.kt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/main/java/at/hannibal2/skyhanni/mixins/hooks/MixinPatcherFontRendererHookHook.kt (limited to 'src/main/java/at/hannibal2/skyhanni/mixins/hooks') diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/MixinPatcherFontRendererHookHook.kt b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/MixinPatcherFontRendererHookHook.kt new file mode 100644 index 000000000..33ee05271 --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/MixinPatcherFontRendererHookHook.kt @@ -0,0 +1,19 @@ +package at.hannibal2.skyhanni.mixins.hooks + +import at.hannibal2.skyhanni.SkyHanniMod +import at.hannibal2.skyhanni.utils.LorenzUtils +import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable + +class MixinPatcherFontRendererHookHook { + companion object { + @JvmStatic + fun overridePatcherFontRenderer(string: String, shadow: Boolean, cir: CallbackInfoReturnable) { + if (!LorenzUtils.onHypixel) return + + if (SkyHanniMod.feature.chroma.enabled) { + cir.cancel() + cir.returnValue = false + } + } + } +} \ No newline at end of file -- cgit