From 04d1a53846a7fe4cd61645a58984e8107019deb1 Mon Sep 17 00:00:00 2001 From: zelophed Date: Sat, 16 Mar 2024 17:48:34 +0100 Subject: [PATCH] Support custom tooltip component heights in goggle overlay --- .../com/simibubi/create/foundation/gui/RemovedGuiUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/simibubi/create/foundation/gui/RemovedGuiUtils.java b/src/main/java/com/simibubi/create/foundation/gui/RemovedGuiUtils.java index a33b5f66b..381a134fe 100644 --- a/src/main/java/com/simibubi/create/foundation/gui/RemovedGuiUtils.java +++ b/src/main/java/com/simibubi/create/foundation/gui/RemovedGuiUtils.java @@ -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();