(fix) scoreboard haeder background

This commit is contained in:
kirillsaint 2024-02-09 14:25:20 +06:00
parent 9cc713c551
commit dc8601c83d

View File

@ -105,10 +105,10 @@ public class ScoreboardMod extends Mod {
if (k == scores.size()) { if (k == scores.size()) {
String s3 = sidebar.getDisplayName(); String s3 = sidebar.getDisplayName();
if(background) {
if(headerBackground) { if(headerBackground) {
Gui.drawRect(sidebarX - 2, scoreY - fr.FONT_HEIGHT - 1, scoreX, scoreY - 1, headerBgColor.getRGB()); Gui.drawRect(sidebarX - 2, scoreY - fr.FONT_HEIGHT - 1, scoreX, scoreY - 1, headerBgColor.getRGB());
} }
if(background) {
Gui.drawRect(sidebarX - 2, scoreY - 1, scoreX, scoreY, bgColor.getRGB()); Gui.drawRect(sidebarX - 2, scoreY - 1, scoreX, scoreY, bgColor.getRGB());
} }
fr.drawString(s3, sidebarX + (sidebarWidth - fr.getStringWidth(s3)) / 2, scoreY - fr.FONT_HEIGHT, -1, fontShadow); fr.drawString(s3, sidebarX + (sidebarWidth - fr.getStringWidth(s3)) / 2, scoreY - fr.FONT_HEIGHT, -1, fontShadow);