mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Attempt to fix console crash
This commit is contained in:
1 parent
0df1d1a101
commit
f040900d3c
1 file changed
+5
-1
@@ -20,7 +20,11 @@ public class TerminalConsoleHandler extends ConsoleHandler {
|
||||
reader.printString(ConsoleReader.RESET_LINE + "");
|
||||
reader.flushConsole();
|
||||
super.flush();
|
||||
reader.drawLine();
|
||||
try {
|
||||
reader.drawLine();
|
||||
} catch (Throwable ex) {
|
||||
reader.getCursorBuffer().clearBuffer();
|
||||
}
|
||||
reader.flushConsole();
|
||||
} catch (IOException ex) {
|
||||
Logger.getLogger(TerminalConsoleHandler.class.getName()).log(Level.SEVERE, null, ex);
|
||||
|
||||
Reference in new issue
Block a user