From dd39ae540b2ee77dcb77303a87e781d68598a5e3 Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 24 Sep 2012 17:22:39 -0400 Subject: [PATCH] Try and fix the newline capture so consoles show on the server on windows again --- common/cpw/mods/fml/relauncher/FMLRelaunchLog.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/cpw/mods/fml/relauncher/FMLRelaunchLog.java b/common/cpw/mods/fml/relauncher/FMLRelaunchLog.java index b116f806d6..2f8e4a85dd 100644 --- a/common/cpw/mods/fml/relauncher/FMLRelaunchLog.java +++ b/common/cpw/mods/fml/relauncher/FMLRelaunchLog.java @@ -89,14 +89,14 @@ public class FMLRelaunchLog record = this.toString(); super.reset(); - currentMessage.append(record); - if (currentMessage.lastIndexOf(FMLLogFormatter.LINE_SEPARATOR)>=0) + currentMessage.append(record.replace(FMLLogFormatter.LINE_SEPARATOR, "\n")); + if (currentMessage.lastIndexOf("\n")>=0) { // Are we longer than just the line separator? - if (currentMessage.length()>FMLLogFormatter.LINE_SEPARATOR.length()) + if (currentMessage.length()>1) { // Trim the line separator - currentMessage.setLength(currentMessage.length()-FMLLogFormatter.LINE_SEPARATOR.length()); + currentMessage.setLength(currentMessage.length()-1); log.log(Level.INFO, currentMessage.toString()); } currentMessage.setLength(0);