diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-16 18:59:05 +0200 |
|---|---|---|
| committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-16 18:59:05 +0200 |
| commit | 8e6c7e50ad1f02ef369152223a60f670012700e1 (patch) | |
| tree | b0df87e6f9bf7f0d0c673249a9efc6f2aa4df4f5 /src/main/java/at/hannibal2/skyhanni/mixins/hooks | |
| parent | c8b3d52608ff03bf9009fc7b69523b925c9179cb (diff) | |
| download | skyhanni-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.kt | 19 |
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 |
