Skip to content

Commit

Permalink
fix online status text being wrong color due to lighting (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
leumasme authored Dec 21, 2024
1 parent 205d4fb commit 810ccc0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/sintinium/oauth/gui/TextWidget.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import net.minecraft.client.gui.GuiScreen;

import org.lwjgl.opengl.GL11;

public class TextWidget {

private final int x;
Expand All @@ -24,6 +26,9 @@ public void setText(String text) {
}

public void draw(GuiScreen screen) {
GL11.glPushAttrib(GL11.GL_LIGHTING);
GL11.glDisable(GL11.GL_LIGHTING);
screen.drawString(screen.mc.fontRenderer, text, x, y, color);
GL11.glPopAttrib();
}
}

0 comments on commit 810ccc0

Please sign in to comment.