mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 06:30:46 +01:00
Attempt to fix console crash
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
88de992943
commit
16f5b6991c
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue