mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-11 15:57:42 +00:00
Bound tooltips to screen properly
This commit is contained in:
1 parent
ba15e4b116
commit
e7c670b1d3
1 file changed
+4
-1
@@ -177,7 +177,10 @@ public class GuiDraw
|
||||
}
|
||||
|
||||
if (x < 8) x = 8;
|
||||
else if (x > displaySize().width - w - 8) x -= 24 + w;//flip side of cursor
|
||||
else if (x > displaySize().width - w - 8) {
|
||||
x -= 24 + w;//flip side of cursor
|
||||
if(x < 8) x = 8;
|
||||
}
|
||||
y = (int) MathHelper.clip(y, 8, displaySize().height - 8 - h);
|
||||
|
||||
gui.incZLevel(300);
|
||||
|
||||
Reference in new issue
Block a user