From 60c4e1b7489ad2142c2720fcc0bbce45e191d0d9 Mon Sep 17 00:00:00 2001 From: Eclipses <99494277+EclipsesDev@users.noreply.github.com> Date: Sun, 22 Dec 2024 23:05:02 +0700 Subject: [PATCH] fix(legacy): customhotbar causing minecraft font issue --- .../injection/forge/mixins/gui/MixinGuiInGame.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/gui/MixinGuiInGame.java b/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/gui/MixinGuiInGame.java index 56d83837b59..d3572c0eca8 100644 --- a/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/gui/MixinGuiInGame.java +++ b/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/gui/MixinGuiInGame.java @@ -97,7 +97,7 @@ private void injectCustomHotbar(ScaledResolution resolution, float delta, Callba List gradientColors = ColorSettingsKt.toColorArray(hud.getBgGradColors(), hud.getMaxHotbarGradientColors()); - GL11.glPushAttrib(GL_ALL_ATTRIB_BITS); + GL11.glPushMatrix(); resetColor(); boolean isGradient = hud.getHotbarMode().equals("Gradient"); @@ -176,7 +176,7 @@ private void injectCustomHotbar(ScaledResolution resolution, float delta, Callba disableRescaleNormal(); disableBlend(); - GL11.glPopAttrib(); + GL11.glPopMatrix(); AWTFontRenderer.Companion.setAssumeNonVolatile(false);