Try and fix the newline capture so consoles show on the server on windows again

This commit is contained in:
Christian committed 2012-09-24 17:22:39 -04:00
1 parent b39f808618
commit dd39ae540b
1 file changed
+4 -4
@@ -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);