Skip to content

Commit 37303cf

Browse files
authored
Hotfix tooltip positioning
1 parent f86a630 commit 37303cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/ldtteam/blockui/controls/Tooltip.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public void drawSelfLast(final BOGuiGraphics target, final double mx, final doub
156156
if (absoluteY > maxAbsoluteMy)
157157
{
158158
// but we don't flip here but just move upwards
159-
y -= (absoluteY - maxAbsoluteMy) / 2;
159+
y -= (absoluteY - maxAbsoluteMy) / renderScale;
160160
}
161161

162162
// modified INLINE: vanilla Screen#renderTooltip(MatrixStack, List<? extends IReorderingProcessor>, int, int, FontRenderer)

0 commit comments

Comments
 (0)