mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-14 06:24:29 +01:00
Support custom tooltip component heights in goggle overlay
This commit is contained in:
parent
5df8ed963e
commit
04d1a53846
@ -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 New Issue
Block a user