From a85c67955c3b2107218785d5cb57489c130a487a Mon Sep 17 00:00:00 2001 From: Mrbysco Date: Wed, 6 Mar 2024 00:37:24 +0100 Subject: [PATCH] Fix Smaller Button not rendering using the color of the message --- .../de/ellpeck/actuallyadditions/mod/inventory/gui/Buttons.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/inventory/gui/Buttons.java b/src/main/java/de/ellpeck/actuallyadditions/mod/inventory/gui/Buttons.java index 124d0e9a2..ced806756 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/inventory/gui/Buttons.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/inventory/gui/Buttons.java @@ -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()); } }