From cc99bf7f1d3dca96018bed12ed1f7d758f9bc6c5 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Fri, 4 Oct 2024 18:40:10 +0200 Subject: [PATCH] Make text aligned --- src/main/java/eu/m724/Renderer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/eu/m724/Renderer.java b/src/main/java/eu/m724/Renderer.java index 9f9f15b..059bb5b 100644 --- a/src/main/java/eu/m724/Renderer.java +++ b/src/main/java/eu/m724/Renderer.java @@ -45,6 +45,7 @@ public class Renderer { Rectangle2D bounds = font.getStringBounds(text, frc); int textWidth = (int) bounds.getWidth(); int textHeight = (int) bounds.getHeight(); + y += textHeight; String[] lines; if (textWidth > TILE_SIZE) { // TODO ideally this should be splitting by word