aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/features/text/StyledTextRenderer.java
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-05-23 16:19:49 +0900
committersyeyoung <cyong06@naver.com>2021-05-23 16:19:49 +0900
commit978d6d8f5798c98b1041f040bb4b2e79813aa370 (patch)
treebe04c4f658bb1db847731bd7a9ae6a9fd1ed2074 /src/main/java/kr/syeyoung/dungeonsguide/features/text/StyledTextRenderer.java
parent0c8b4bc4ae367615ef009a98297045c0f999696d (diff)
downloadSkyblock-Dungeons-Guide-978d6d8f5798c98b1041f040bb4b2e79813aa370.tar.gz
Skyblock-Dungeons-Guide-978d6d8f5798c98b1041f040bb4b2e79813aa370.tar.bz2
Skyblock-Dungeons-Guide-978d6d8f5798c98b1041f040bb4b2e79813aa370.zip
Display room name and fix styledtextrenderer crashing minecraft.
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features/text/StyledTextRenderer.java')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/text/StyledTextRenderer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/text/StyledTextRenderer.java b/src/main/java/kr/syeyoung/dungeonsguide/features/text/StyledTextRenderer.java
index fc37cf70..ae30e113 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/text/StyledTextRenderer.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/text/StyledTextRenderer.java
@@ -43,7 +43,7 @@ public class StyledTextRenderer {
public static List<StyleTextAssociated> drawTextWithStylesAssociated(List<StyledText> texts, int x, int y,int width, Map<String, TextStyle> styleMap, Alignment alignment) {
- String[] totalLines = texts.stream().map( a-> a.getText()).collect(Collectors.joining()).split("\n");
+ String[] totalLines = (texts.stream().map( a-> a.getText()).collect(Collectors.joining())+" ").split("\n");
int currentLine = 0;