mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 04:05:50 -07:00
Attempt to fix console crash
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -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();
|
||||||
|
try {
|
||||||
reader.drawLine();
|
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);
|
||||||
|
Reference in New Issue
Block a user