Fix Smaller Button not rendering using the color of the message

This commit is contained in:
Mrbysco 2024-03-06 00:37:24 +01:00
parent 3f49a259a1
commit a85c67955c

View file

@ -53,7 +53,7 @@ public class Buttons {
color = 16777120;
}
guiGraphics.drawCenteredString(Minecraft.getInstance().font, this.getMessage().getString(), this.getX() + this.width / 2, this.getY() + (this.height - 8) / 2, color);
guiGraphics.drawCenteredString(Minecraft.getInstance().font, this.getMessage(), this.getX() + this.width / 2, this.getY() + (this.height - 8) / 2, this.getMessage().getStyle().getColor().getValue());
}
}