From 7d900a1de812619b07c9712ed79e3416466a4a2e Mon Sep 17 00:00:00 2001 From: ParadoxGitHub <70107937+ParadoxGitHub@users.noreply.github.com> Date: Sun, 19 Mar 2023 18:20:13 -0400 Subject: [PATCH] fixed buttons part 2!!! --- src/main/java/net/minecraft/client/gui/GuiButton.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/client/gui/GuiButton.java b/src/main/java/net/minecraft/client/gui/GuiButton.java index 70ee67e3..b791b5dd 100644 --- a/src/main/java/net/minecraft/client/gui/GuiButton.java +++ b/src/main/java/net/minecraft/client/gui/GuiButton.java @@ -99,7 +99,7 @@ public class GuiButton extends Gui { j = 14737632; } - drawCenteredString(mc.fontRendererObj, this.displayString, this.xPosition + this.width / 2f, this.yPosition + (this.height - 8) / 2f, this.hovered ? new Color(47, 116, 253, 255).getRGB() : new Color(200, 200, 200).getRGB()); + drawCenteredString(mc.fontRendererObj, this.displayString, this.xPosition + this.width / 2f, this.yPosition + (this.height - 8) / 2f, this.hovered && this.enabled ? new Color(47, 116, 253, 255).getRGB() : new Color(200, 200, 200).getRGB()); } }