mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-26 06:53:26 +00:00
Fix wrong mouse Y half-point calculation
This commit is contained in:
1 parent
5847385043
commit
c147d1825f
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user