diff --git a/bukkit/src/main/java/io/github/rothes/protocolstringreplacer/console/PsrLogEventPatternConverter.java b/bukkit/src/main/java/io/github/rothes/protocolstringreplacer/console/PsrLogEventPatternConverter.java index a49c408..271d789 100644 --- a/bukkit/src/main/java/io/github/rothes/protocolstringreplacer/console/PsrLogEventPatternConverter.java +++ b/bukkit/src/main/java/io/github/rothes/protocolstringreplacer/console/PsrLogEventPatternConverter.java @@ -67,7 +67,7 @@ public void format(LogEvent event, StringBuilder toAppendTo) { ConfigManager configManager = plugin.getConfigManager(); if (configManager != null && configManager.resetConsoleColor) { for (int i = toAppendTo.length() - 1; i >= 0; i--) { - if (toAppendTo.charAt(i) == '\r') { + if (toAppendTo.charAt(i) == '\n') { toAppendTo.insert(i, "\u001b[0m"); } }