From 1aa7835060d40f35c4cc04d7b7f0f86f549e27af Mon Sep 17 00:00:00 2001 From: ManInMyVan Date: Sat, 27 Jul 2024 12:17:22 -0600 Subject: [PATCH] 5c79679 --- .../injection/forge/mixins/render/MixinFontRenderer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/render/MixinFontRenderer.java b/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/render/MixinFontRenderer.java index ceb19677..f8dea53f 100644 --- a/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/render/MixinFontRenderer.java +++ b/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/render/MixinFontRenderer.java @@ -90,8 +90,8 @@ private void injectRainbow4(String text, boolean shadow, CallbackInfo ci) { } @Debug(print = true) - @Inject(method = "drawString(Ljava/lang/String;FFIZ)I", at = @At("HEAD"), require = 1, allow = 1) - private void injectGradient5(String text, float x, float y, int color, boolean dropShadow, CallbackInfoReturnable cir) { + @Inject(method = "renderStringAtPos", at = @At(value = "HEAD"), require = 1, allow = 1) + private void injectGradient5(String text, boolean shadow, CallbackInfo ci) { gradientEnabled1 = GradientFontShader.INSTANCE.isInUse(); }