diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-06-04 14:03:19 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-06-04 14:03:19 +0200 |
commit | 37a0f3d6bf5f2bd2a44652285aa0ab39e09420bc (patch) | |
tree | 739ecf71873636496b2dc8d89c47d199bd96de59 | |
parent | bc48ed611da2ee666651919cfcc4c7046bcede0a (diff) | |
download | OneConfig-37a0f3d6bf5f2bd2a44652285aa0ab39e09420bc.tar.gz OneConfig-37a0f3d6bf5f2bd2a44652285aa0ab39e09420bc.tar.bz2 OneConfig-37a0f3d6bf5f2bd2a44652285aa0ab39e09420bc.zip |
coding monkies make mistake with button
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/gui/elements/BasicButton.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/elements/BasicButton.java b/src/main/java/cc/polyfrost/oneconfig/gui/elements/BasicButton.java index c240afd..6d9f88c 100644 --- a/src/main/java/cc/polyfrost/oneconfig/gui/elements/BasicButton.java +++ b/src/main/java/cc/polyfrost/oneconfig/gui/elements/BasicButton.java @@ -109,7 +109,7 @@ public class BasicButton extends BasicElement { contentWidth += RenderManager.getTextWidth(vg, text, fontSize, Fonts.MEDIUM) + xSpacing; } if (icon2 != null) - RenderManager.drawSvg(vg, icon2, x + contentWidth, middleYIcon, iconSize, iconSize, color); + RenderManager.drawSvg(vg, icon2, x + width - xPadding - iconSize, middleYIcon, iconSize, iconSize, color); } if (disabled) RenderManager.setAlpha(vg, 1f); } |