From f274a9b90973f18f8d9d8cd74896d1fa5c69cca5 Mon Sep 17 00:00:00 2001 From: PeytonPlayz595 <106421860+PeytonPlayz595@users.noreply.github.com> Date: Fri, 14 Jul 2023 10:02:48 -0400 Subject: [PATCH] Fix score counter --- src/teavm/java/com/mojang/minecraft/gui/GameOverScreen.java | 2 +- src/teavm/java/com/mojang/minecraft/gui/HUDScreen.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/teavm/java/com/mojang/minecraft/gui/GameOverScreen.java b/src/teavm/java/com/mojang/minecraft/gui/GameOverScreen.java index dd65df7..218584e 100644 --- a/src/teavm/java/com/mojang/minecraft/gui/GameOverScreen.java +++ b/src/teavm/java/com/mojang/minecraft/gui/GameOverScreen.java @@ -39,7 +39,7 @@ public final class GameOverScreen extends GuiScreen { GL11.glScalef(2.0F, 2.0F, 2.0F); drawCenteredString(this.fontRenderer, "Game over!", this.width / 2 / 2, 30, 16777215); GL11.glPopMatrix(); - drawCenteredString(this.fontRenderer, "Score: &e" + this.minecraft.player.getScore(), this.width / 2, 100, 16777215); + drawCenteredString(this.fontRenderer, "Score: " + this.minecraft.player.getScore(), this.width / 2, 100, 16777215); super.render(var1, var2); } } diff --git a/src/teavm/java/com/mojang/minecraft/gui/HUDScreen.java b/src/teavm/java/com/mojang/minecraft/gui/HUDScreen.java index 0a9b9bb..ffc2926 100644 --- a/src/teavm/java/com/mojang/minecraft/gui/HUDScreen.java +++ b/src/teavm/java/com/mojang/minecraft/gui/HUDScreen.java @@ -146,7 +146,7 @@ public final class HUDScreen extends Screen { } if(this.mc.gamemode instanceof SurvivalGameMode) { - String var24 = "Score: &e" + this.mc.player.getScore(); + String var24 = "Score: " + this.mc.player.getScore(); var5.drawString(var24, this.width - var5.getStringWidth(var24) - 2, 2, 16777215); var5.drawString("Arrows: " + this.mc.player.arrows, this.width / 2 + 8, this.height - 33, 16777215); }