diff options
author | Juuxel <kasperi.kauppi@gmail.com> | 2019-07-28 13:27:27 +0300 |
---|---|---|
committer | Juuxel <kasperi.kauppi@gmail.com> | 2019-07-28 13:27:27 +0300 |
commit | e4276265b8b9e0244b7bc3d019032e423ce33307 (patch) | |
tree | 93e581a82afa8415c29dd60ce3e80cf2681b84ca /src | |
parent | 1fa69a1b0effc9f692bc7dd71bcdcfd89b8f5d8d (diff) | |
download | LibGui-e4276265b8b9e0244b7bc3d019032e423ce33307.tar.gz LibGui-e4276265b8b9e0244b7bc3d019032e423ce33307.tar.bz2 LibGui-e4276265b8b9e0244b7bc3d019032e423ce33307.zip |
Fix tooltip position
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/widget/WWidget.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WWidget.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WWidget.java index 4eff4f7..14bb979 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WWidget.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WWidget.java @@ -139,7 +139,7 @@ public class WWidget { @Environment(EnvType.CLIENT) public void paintForeground(int x, int y, int mouseX, int mouseY) { if (mouseX >= x && mouseX < x+getWidth() && mouseY >= y && mouseY < y+getHeight()) { - renderTooltip(mouseX-x+getX(),mouseY-y+getY() ); + renderTooltip(mouseX, mouseY); } } |