Attempt to fix console crash

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
CraftBukkit/Spigot 2011-03-09 23:34:26 +00:00
parent 88de992943
commit 16f5b6991c

View File

@ -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);