diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-05-07 09:18:13 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-05-07 09:18:13 +0800 |
| commit | 9662f0e452a0e1ac23de3f39861d15db7db5b1cc (patch) | |
| tree | d59aa0d5b9f4e2ee45dbaa52e10e6ba0415ef722 /src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java | |
| parent | 6c1df6bddb1ff6537e9490ba828f35d40ff5903a (diff) | |
| download | RoughlyEnoughItems-9662f0e452a0e1ac23de3f39861d15db7db5b1cc.tar.gz RoughlyEnoughItems-9662f0e452a0e1ac23de3f39861d15db7db5b1cc.tar.bz2 RoughlyEnoughItems-9662f0e452a0e1ac23de3f39861d15db7db5b1cc.zip | |
Bump for 20w19a
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java b/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java index 3d742bfbb..0aaabfa7a 100644 --- a/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java +++ b/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java @@ -560,7 +560,7 @@ public class ContainerScreenOverlay extends WidgetWithBounds { public void renderTooltip(MatrixStack matrices, List<Text> lines, int mouseX, int mouseY) { if (lines.isEmpty()) return; - tooltipWidth = lines.stream().map(font::getWidth).max(Integer::compareTo).get(); + tooltipWidth = lines.stream().map(font::getStringWidth).max(Integer::compareTo).get(); tooltipHeight = lines.size() <= 1 ? 8 : lines.size() * 10; tooltipLines = lines; ScreenHelper.drawHoveringWidget(matrices, mouseX, mouseY, renderTooltipCallback, tooltipWidth, tooltipHeight, 0); |
