Skip to content

Commit 0b7af0f

Browse files
Tooltip: Fix "point" not drawing on 1.16.5+ (part 2)
Also fixes the version of drawTooltip in AdButton (these should be merged at some point)
1 parent 41e340b commit 0b7af0f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,16 +213,16 @@ private void drawTooltip(Draw draw, Minecraft mc, TooltipPosition position) {
213213
draw.rect(centerX - (2 - i) - 1, y + height + i, centerX + (2 - i), y + height + i + 1, 0xFF232323);
214214
break;
215215
case BELOW:
216-
draw.rect(centerX - (2 - i) - 1, y - i - 1, centerX + (2 - i), y - i - 2, 0xFF000000);
217-
draw.rect(centerX - (2 - i) - 1, y - i, centerX + (2 - i), y - i - 1, 0xFF232323);
216+
draw.rect(centerX - (2 - i) - 1, y - i - 2, centerX + (2 - i), y - i - 1, 0xFF000000);
217+
draw.rect(centerX - (2 - i) - 1, y - i - 1, centerX + (2 - i), y - i, 0xFF232323);
218218
break;
219219
case LEFT:
220220
draw.rect(x + width + i + 1, centerY - (2 - i) - 1, x + width + i + 2, centerY + (2 - i), 0xFF000000);
221221
draw.rect(x + width + i, centerY - (2 - i) - 1, x + width + i + 1, centerY + (2 - i), 0xFF232323);
222222
break;
223223
case RIGHT:
224-
draw.rect(x - i - 1, centerY - (2 - i) - 1, x - i - 2, centerY + (2 - i), 0xFF000000);
225-
draw.rect(x - i, centerY - (2 - i) - 1, x - i - 1, centerY + (2 - i), 0xFF232323);
224+
draw.rect(x - i - 2, centerY - (2 - i) - 1, x - i - 1, centerY + (2 - i), 0xFF000000);
225+
draw.rect(x - i - 1, centerY - (2 - i) - 1, x - i, centerY + (2 - i), 0xFF232323);
226226
break;
227227
}
228228
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ public static void drawTooltip(Draw draw, String text, Position position, int pa
6565
draw.rect(x + width + i, centerY - (2 - i) - 1, x + width + i + 1, centerY + (2 - i), 0xFF232323);
6666
break;
6767
case RIGHT:
68-
draw.rect(x - i - 1, centerY - (2 - i) - 1, x - i - 2, centerY + (2 - i), 0xFF000000);
69-
draw.rect(x - i, centerY - (2 - i) - 1, x - i - 1, centerY + (2 - i), 0xFF232323);
68+
draw.rect(x - i - 2, centerY - (2 - i) - 1, x - i - 1, centerY + (2 - i), 0xFF000000);
69+
draw.rect(x - i - 1, centerY - (2 - i) - 1, x - i, centerY + (2 - i), 0xFF232323);
7070
break;
7171
}
7272
}

0 commit comments

Comments
 (0)