mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
parent
e93f03bd4e
commit
b01c50b792
7 changed files with 217 additions and 26 deletions
|
|
@ -384,8 +384,11 @@ namespace MinecraftClient
|
|||
/// Write a prefixed log line. Prefix is set in LogPrefix.
|
||||
/// </summary>
|
||||
/// <param name="text">Text of the log line</param>
|
||||
public static void WriteLogLine(string text)
|
||||
/// <param name="acceptnewlines">Allow line breaks</param>
|
||||
public static void WriteLogLine(string text, bool acceptnewlines = true)
|
||||
{
|
||||
if (!acceptnewlines)
|
||||
text = text.Replace('\n', ' ');
|
||||
WriteLineFormatted(LogPrefix + text);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue