Skip to content

Commit f4bd54f

Browse files
committed
Wrap fission force disabled tooltip to be in line with other tooltip rendering
1 parent 70c4940 commit f4bd54f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/generators/java/mekanism/generators/client/gui/GuiFissionReactor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ public void renderForeground(GuiGraphics guiGraphics, int mouseX, int mouseY) {
9595
pose.pushPose();
9696
//Offset to fix rendering position
9797
pose.translate(-getGuiLeft(), -getGuiTop(), 0);
98-
guiGraphics.renderTooltip(getFont(), GeneratorsLang.FISSION_FORCE_DISABLED.translate(), mouseX, mouseY);
98+
//Tooltip.MAX_WIDTH = 170
99+
guiGraphics.renderTooltip(font, font.split(GeneratorsLang.FISSION_FORCE_DISABLED.translate(), 170), mouseX, mouseY);
99100
pose.popPose();
100101
}
101102
active = false;

0 commit comments

Comments
 (0)