Hexeption / MCP-Reborn

MCP-Reborn is an MCP (Mod Coder Pack) for Minecraft for making modded clients and researching its code. (1.13-1.20.1)
Other
1.03k stars 137 forks source link

[NOT A BUG] I need assistance. #253

Closed theOneTrueFunniBoi closed 1 year ago

theOneTrueFunniBoi commented 1 year ago

I need some help. I am using MCP-Reborn 1.18.2 and I'm trying to draw text to LoadingOverlay.java (The Mojang Loading Screen) and it's working but the displayed text does not use a font, rather displaying the missing character unicode symbol. How do I have it render the proper font?

Here is the code (The top of drawProgressBar (Don't judge me for placing the code there)):

private void drawProgressBar(PoseStack p96183, int p96184, int p96185, int p96186, int p96187, float p96188) { int i = Mth.ceil((float)(p96186 - p96184 - 2) this.currentProgress); int j = Math.round(p96188 255.0F); Minecraft instance = Minecraft.getInstance(); Font font = instance.font; instance.font.draw(p96183, loading_status, 0, 0, 0xFFFFF); <--- [Problematic Code] LOGGER.info("LOADING STATUS TEXT FONT BUGGED, PLEASE FIX!");

Eg: image

theOneTrueFunniBoi commented 1 year ago

So I found out the issue, turns out the game loads the bitmap font files when the title screen loads. So there's not really anything i can do. So yeah, problem solved I guess...