Skip to content

Commit 1f564ad

Browse files
committed
Fix previous commit 'prevent tooltips from rendering offscreen'
copy/pasted the wrong variable
1 parent 0e6aa0d commit 1f564ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/meteordevelopment/meteorclient/gui/renderer/GuiRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public boolean renderTooltip(DrawContext drawContext, double mouseX, double mous
186186
}
187187

188188
double deltaX = -tooltipWidget.x + mouseX + 12;
189-
double deltaY = -tooltipWidget.y + mouseX + 12;
189+
double deltaY = -tooltipWidget.y + mouseY + 12;
190190

191191
if (mouseX + 12 + tooltipWidget.width > getWindowWidth()) deltaX = -tooltipWidget.x + getWindowWidth() - tooltipWidget.width;
192192
if (mouseY + 12 + tooltipWidget.height > getWindowHeight()) deltaY = -tooltipWidget.y + getWindowHeight() - tooltipWidget.height;

0 commit comments

Comments
 (0)