Skip to content

Commit

Permalink
Support line break wrapping in GuiText
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon3055 committed Apr 7, 2024
1 parent 463deb1 commit 9ed6604
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public void renderForeground(GuiRender render, double mouseX, double mouseY, flo
render.drawString(formatted, xPos, yPos, getTextColour(), getShadow());
}
//Draw Wrapped
else if (tooLong && wrap) {
else if ((tooLong || font().split(component, Integer.MAX_VALUE).size() > 1) && wrap) {
textHeight = font.wordWrapHeight(component, (int) xSize());
List<FormattedCharSequence> list = font.split(component, (int) xSize());

Expand Down

0 comments on commit 9ed6604

Please sign in to comment.