aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
diff options
context:
space:
mode:
authorFalkreon <falkreon@gmail.com>2019-07-29 09:01:32 -0500
committerGitHub <noreply@github.com>2019-07-29 09:01:32 -0500
commit64615ae6c66bcfb40b1385e3452a0f4b932ab322 (patch)
tree5a1935e8b546183326a779bff95c5f52f9167522 /src/main/java/io
parent237bd167e0d501479d8215093e9658cf4fdd3f38 (diff)
parente3b729744a62ad126dc4d162798aa92f042d92ba (diff)
downloadLibGui-64615ae6c66bcfb40b1385e3452a0f4b932ab322.tar.gz
LibGui-64615ae6c66bcfb40b1385e3452a0f4b932ab322.tar.bz2
LibGui-64615ae6c66bcfb40b1385e3452a0f4b932ab322.zip
Merge pull request #3 from Juuxel/fix-tooltip-position
Fix tooltip position
Diffstat (limited to 'src/main/java/io')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/widget/WWidget.java2
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);
}
}