mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-16 10:34:49 +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();
|
record = this.toString();
|
||||||
super.reset();
|
super.reset();
|
||||||
|
|
||||||
currentMessage.append(record);
|
currentMessage.append(record.replace(FMLLogFormatter.LINE_SEPARATOR, "\n"));
|
||||||
if (currentMessage.lastIndexOf(FMLLogFormatter.LINE_SEPARATOR)>=0)
|
if (currentMessage.lastIndexOf("\n")>=0)
|
||||||
{
|
{
|
||||||
// Are we longer than just the line separator?
|
// Are we longer than just the line separator?
|
||||||
if (currentMessage.length()>FMLLogFormatter.LINE_SEPARATOR.length())
|
if (currentMessage.length()>1)
|
||||||
{
|
{
|
||||||
// Trim the line separator
|
// Trim the line separator
|
||||||
currentMessage.setLength(currentMessage.length()-FMLLogFormatter.LINE_SEPARATOR.length());
|
currentMessage.setLength(currentMessage.length()-1);
|
||||||
log.log(Level.INFO, currentMessage.toString());
|
log.log(Level.INFO, currentMessage.toString());
|
||||||
}
|
}
|
||||||
currentMessage.setLength(0);
|
currentMessage.setLength(0);
|
||||||
|
|||||||
Reference in new issue
Block a user