Skip to content

Commit 41e340b

Browse files
Tooltip: Fix "point" not drawing on 1.16.5+
Culling is enabled on 1.16.5+, so top must be less than the bottom.
1 parent 089df3d commit 41e340b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/gg/essential/ad/Tooltip.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ public static void drawTooltip(Draw draw, String text, Position position, int pa
5757
draw.rect(centerX - (2 - i) - 1, y + height + i, centerX + (2 - i), y + height + i + 1, 0xFF232323);
5858
break;
5959
case BELOW:
60-
draw.rect(centerX - (2 - i) - 1, y - i - 1, centerX + (2 - i), y - i - 2, 0xFF000000);
61-
draw.rect(centerX - (2 - i) - 1, y - i, centerX + (2 - i), y - i - 1, 0xFF232323);
60+
draw.rect(centerX - (2 - i) - 1, y - i - 2, centerX + (2 - i), y - i - 1, 0xFF000000);
61+
draw.rect(centerX - (2 - i) - 1, y - i - 1, centerX + (2 - i), y - i, 0xFF232323);
6262
break;
6363
case LEFT:
6464
draw.rect(x + width + i + 1, centerY - (2 - i) - 1, x + width + i + 2, centerY + (2 - i), 0xFF000000);

0 commit comments

Comments
 (0)