Support custom tooltip component heights in goggle overlay

This commit is contained in:
zelophed 2024-03-16 17:48:34 +01:00
parent 5df8ed963e
commit 04d1a53846

View file

@ -181,14 +181,14 @@ public class RemovedGuiUtils {
for (int lineNumber = 0; lineNumber < list.size(); ++lineNumber) { for (int lineNumber = 0; lineNumber < list.size(); ++lineNumber) {
ClientTooltipComponent line = list.get(lineNumber); ClientTooltipComponent line = list.get(lineNumber);
if (line != null) if (line != null)
line.renderText(font, tooltipX, tooltipY, mat, renderType); line.renderText(font, tooltipX, tooltipY, mat, renderType);
if (lineNumber + 1 == titleLinesCount) if (lineNumber + 1 == titleLinesCount)
tooltipY += 2; tooltipY += 2;
tooltipY += 10; tooltipY += line == null ? 10 : line.getHeight();
} }
renderType.endBatch(); renderType.endBatch();