Fix score counter

This commit is contained in:
PeytonPlayz595 2023-07-14 10:02:48 -04:00
parent 5af38fb1dc
commit f274a9b909
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -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);
}