mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Try and fix the newline capture so consoles show on the server on windows again
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user