From 7d9c2589921690c0b04507898fe95c36eac7aef7 Mon Sep 17 00:00:00 2001 From: PeytonPlayz595 <106421860+PeytonPlayz595@users.noreply.github.com> Date: Mon, 17 Jul 2023 03:46:12 -0400 Subject: [PATCH] WTF --- src/teavm/java/com/mojang/minecraft/gui/GuiScreen.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/teavm/java/com/mojang/minecraft/gui/GuiScreen.java b/src/teavm/java/com/mojang/minecraft/gui/GuiScreen.java index 62ff339..9677708 100644 --- a/src/teavm/java/com/mojang/minecraft/gui/GuiScreen.java +++ b/src/teavm/java/com/mojang/minecraft/gui/GuiScreen.java @@ -83,18 +83,18 @@ public class GuiScreen extends Screen { gui.buttons.clear(); gui.minecraft.setCurrentScreen(gui); } - - for(int var1 = 0; var1 < 5; var1++) { + GL11.updateDisplay(); + for(int var1 = 0; var1 < 3; var1++) { minecraft.width = GL11.parent.getClientWidth(); minecraft.height = GL11.parent.getClientHeight(); GL11.canvas.setWidth(minecraft.width); GL11.canvas.setHeight(minecraft.height); minecraft.hud = null; - HUDScreen hud = new HUDScreen(minecraft, minecraft.width, minecraft.height); - hud.render(minecraft.timer.delta, minecraft.currentScreen != null, GL11.mouseGetX() * minecraft.width * 240 / minecraft.height / minecraft.width, minecraft.height * 240 / minecraft.height - GL11.mouseGetY() * minecraft.height * 240 / minecraft.height / minecraft.height - 1); - minecraft.hud = hud; } GL11.updateDisplay(); + HUDScreen hud = new HUDScreen(minecraft, minecraft.width, minecraft.height); + hud.render(minecraft.timer.delta, minecraft.currentScreen != null, GL11.mouseGetX() * minecraft.width * 240 / minecraft.height / minecraft.width, minecraft.height * 240 / minecraft.height - GL11.mouseGetY() * minecraft.height * 240 / minecraft.height / minecraft.height - 1); + minecraft.hud = hud; } public final void open(Minecraft var1, int var2, int var3) {