diff options
author | syeyoung <cyong06@naver.com> | 2021-02-05 17:29:09 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-02-05 17:29:09 +0900 |
commit | 6b4e2499ece7f4328381a88380baea85fe24246d (patch) | |
tree | 07a1da8b9d2b6f543d5905a29adc2a5a1c46736d /src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MButton.java | |
parent | 3d20d63e025b827ae9a8e7bd62b436fda7986071 (diff) | |
download | Skyblock-Dungeons-Guide-6b4e2499ece7f4328381a88380baea85fe24246d.tar.gz Skyblock-Dungeons-Guide-6b4e2499ece7f4328381a88380baea85fe24246d.tar.bz2 Skyblock-Dungeons-Guide-6b4e2499ece7f4328381a88380baea85fe24246d.zip |
Gui Overhaul part 1
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MButton.java')
-rwxr-xr-x | src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MButton.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MButton.java b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MButton.java index 17196ebc..ff420a32 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MButton.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MButton.java @@ -39,7 +39,7 @@ public class MButton extends MPanel { FontRenderer renderer = Minecraft.getMinecraft().fontRendererObj; int width = renderer.getStringWidth(getText()); int x = (getBounds().width - width) / 2; - int y = (getBounds().height - renderer.FONT_HEIGHT) / 2; + int y = (getBounds().height - renderer.FONT_HEIGHT) / 2 + 1; renderer.drawString(getText(), x,y, foreground.getRGB()); } |