summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/mixins/hooks
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-16 18:59:05 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-16 18:59:05 +0200
commit8e6c7e50ad1f02ef369152223a60f670012700e1 (patch)
treeb0df87e6f9bf7f0d0c673249a9efc6f2aa4df4f5 /src/main/java/at/hannibal2/skyhanni/mixins/hooks
parentc8b3d52608ff03bf9009fc7b69523b925c9179cb (diff)
downloadskyhanni-8e6c7e50ad1f02ef369152223a60f670012700e1.tar.gz
skyhanni-8e6c7e50ad1f02ef369152223a60f670012700e1.tar.bz2
skyhanni-8e6c7e50ad1f02ef369152223a60f670012700e1.zip
Fixed bug that prevented some users to start their game.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/mixins/hooks')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/mixins/hooks/MixinPatcherFontRendererHookHook.kt19
1 files changed, 19 insertions, 0 deletions
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<Boolean>) {
+ if (!LorenzUtils.onHypixel) return
+
+ if (SkyHanniMod.feature.chroma.enabled) {
+ cir.cancel()
+ cir.returnValue = false
+ }
+ }
+ }
+} \ No newline at end of file