From 849655bfc6aa34b09daf1dc2b0113cfa51d2b934 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Thu, 26 Aug 2021 14:19:40 +0200 Subject: [PATCH] Fixes a bug causing newlines to disappear when a console is truncated --- .../minecraftserverlauncher/userinterface/Console.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/knarcraft/minecraftserverlauncher/userinterface/Console.java b/src/main/java/net/knarcraft/minecraftserverlauncher/userinterface/Console.java index c3f639a..d013deb 100644 --- a/src/main/java/net/knarcraft/minecraftserverlauncher/userinterface/Console.java +++ b/src/main/java/net/knarcraft/minecraftserverlauncher/userinterface/Console.java @@ -93,7 +93,7 @@ public class Console extends KeyAdapter implements ActionListener, KeyListener { StringBuilder newTextBuilder = new StringBuilder(); for (String line : oldTextList) { if (!line.equals("")) { - newTextBuilder.append(line); + newTextBuilder.append(line).append("\n"); } } this.textOutput.setText(newTextBuilder.toString());