Fix wrong mouse Y half-point calculation

This commit is contained in:
Raven Szewczyk committed 2023-07-09 17:13:29 +01:00
1 parent 5847385043
commit c147d1825f
1 file changed
+1 -1
+1 -1
View File
@@ -340,7 +340,7 @@ public class ItemsGrid {
GL11.glPushMatrix();
final float tooltipYOffset;
if (mousey > height / 2) {
if (mousey - marginTop > height / 2) {
tooltipYOffset = mousey - recipeTooltipGui.getHeightAsWidget() + 8;
} else {
tooltipYOffset = mousey + 3 + (recipeTooltipLines * 10);