Skip to content

Commit 38bd6db

Browse files
committed
Search for \r instead of \n
1 parent c36521d commit 38bd6db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bukkit/src/main/java/io/github/rothes/protocolstringreplacer/console/PsrLogEventPatternConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void format(LogEvent event, StringBuilder toAppendTo) {
6767
ConfigManager configManager = plugin.getConfigManager();
6868
if (configManager != null && configManager.resetConsoleColor) {
6969
for (int i = toAppendTo.length() - 1; i >= 0; i--) {
70-
if (toAppendTo.charAt(i) == '\n') {
70+
if (toAppendTo.charAt(i) == '\r') {
7171
toAppendTo.insert(i, "\u001b[0m");
7272
}
7373
}

0 commit comments

Comments
 (0)