From fa677b99b5396eadc376592d6ecbf461a0b8b7db Mon Sep 17 00:00:00 2001 From: Marcel Konrad Date: Mon, 26 Jul 2021 00:03:13 +0200 Subject: [PATCH] Fix bold button for color fields --- .../exopandora/worldhandler/gui/menu/impl/MenuColorField.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/exopandora/worldhandler/gui/menu/impl/MenuColorField.java b/src/main/java/exopandora/worldhandler/gui/menu/impl/MenuColorField.java index 6223f7d..61bbd08 100644 --- a/src/main/java/exopandora/worldhandler/gui/menu/impl/MenuColorField.java +++ b/src/main/java/exopandora/worldhandler/gui/menu/impl/MenuColorField.java @@ -126,7 +126,7 @@ public class MenuColorField extends Menu })); container.add(new GuiButtonBase(this.x + 118 + 24 - 1, this.y + 48, 20, 20, new StringTextComponent("B").setStyle(Style.EMPTY.withBold(this.string.getStyle().isBold())), () -> { - this.string.setStyle(this.string.getStyle().withItalic(!this.string.getStyle().isBold())); + this.string.setStyle(this.string.getStyle().withBold(!this.string.getStyle().isBold())); container.init(); })); container.add(new GuiButtonBase(this.x + 118 + 24 * 2 - 1, this.y + 48, 20, 20, new StringTextComponent("U").setStyle(Style.EMPTY.setUnderlined(this.string.getStyle().isUnderlined())), () ->