mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-26 06:57:51 +01:00
Support custom tooltip component heights in goggle overlay
This commit is contained in:
parent
5df8ed963e
commit
04d1a53846
1 changed files with 2 additions and 2 deletions
|
@ -181,14 +181,14 @@ public class RemovedGuiUtils {
|
|||
|
||||
for (int lineNumber = 0; lineNumber < list.size(); ++lineNumber) {
|
||||
ClientTooltipComponent line = list.get(lineNumber);
|
||||
|
||||
|
||||
if (line != null)
|
||||
line.renderText(font, tooltipX, tooltipY, mat, renderType);
|
||||
|
||||
if (lineNumber + 1 == titleLinesCount)
|
||||
tooltipY += 2;
|
||||
|
||||
tooltipY += 10;
|
||||
tooltipY += line == null ? 10 : line.getHeight();
|
||||
}
|
||||
|
||||
renderType.endBatch();
|
||||
|
|
Loading…
Reference in a new issue