v2.0.2: fixed a rounding error in rendered text block

This commit is contained in:
Evan Debenham
2023-04-06 13:15:40 -04:00
parent 9668507075
commit 04b9592f60

View File

@@ -237,7 +237,7 @@ public class RenderedTextBlock extends Component {
j++;
}
if ((x - this.x) + fullWidth > maxWidth && !curLine.isEmpty()){
if ((x - this.x) + fullWidth - 0.001f > maxWidth && !curLine.isEmpty()){
y += height+2f;
x = this.x;
nLines++;