diff options
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/util/TerminalConsoleHandler.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/util/TerminalConsoleHandler.java b/src/main/java/org/bukkit/craftbukkit/util/TerminalConsoleHandler.java index 2034ad97..43bc392f 100644 --- a/src/main/java/org/bukkit/craftbukkit/util/TerminalConsoleHandler.java +++ b/src/main/java/org/bukkit/craftbukkit/util/TerminalConsoleHandler.java @@ -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); |