3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 20:40:08 +01:00

Attempt to fix console crash

Dieser Commit ist enthalten in:
Dinnerbone 2011-03-09 23:34:26 +00:00
Ursprung 0df1d1a101
Commit f040900d3c

Datei anzeigen

@ -20,7 +20,11 @@ public class TerminalConsoleHandler extends ConsoleHandler {
reader.printString(ConsoleReader.RESET_LINE + ""); reader.printString(ConsoleReader.RESET_LINE + "");
reader.flushConsole(); reader.flushConsole();
super.flush(); super.flush();
reader.drawLine(); try {
reader.drawLine();
} catch (Throwable ex) {
reader.getCursorBuffer().clearBuffer();
}
reader.flushConsole(); reader.flushConsole();
} catch (IOException ex) { } catch (IOException ex) {
Logger.getLogger(TerminalConsoleHandler.class.getName()).log(Level.SEVERE, null, ex); Logger.getLogger(TerminalConsoleHandler.class.getName()).log(Level.SEVERE, null, ex);