Skip to content

Commit f290dbc

Browse files
Fixed hud text scale being ignored with the custom font disabled (#6663)
1 parent ac4604e commit f290dbc

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/main/java/meteordevelopment/meteorclient/renderer/text/VanillaTextRenderer.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public class VanillaTextRenderer implements TextRenderer {
1515
public static final VanillaTextRenderer INSTANCE = new VanillaTextRenderer();
1616

1717
public double scale = 2;
18+
//todo remove in 26.3 update
1819
public boolean scaleIndividually;
1920

2021
private GuiGraphicsExtractor graphics;

‎src/main/java/meteordevelopment/meteorclient/systems/hud/HudRenderer.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ public double text(String text, double x, double y, Color color, boolean shadow,
141141
if (scale == -1) scale = hud.getTextScale();
142142

143143
if (!hud.hasCustomFont()) {
144+
VanillaTextRenderer.INSTANCE.scale = scale * 2;
144145
return VanillaTextRenderer.INSTANCE.render(text, x, y, color, shadow);
145146
}
146147

0 commit comments

Comments
 (0)