summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-03-09 23:34:26 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-03-09 23:34:26 +0000
commitf040900d3c8ee961ef1bb2b6af9a6c8cd42c197d (patch)
tree12608ee0d0233321646a65a047bb3d5d7a19ba8e
parent0df1d1a1011d16562e4d5d1d6fd60182a0508401 (diff)
downloadcraftbukkit-f040900d3c8ee961ef1bb2b6af9a6c8cd42c197d.tar
craftbukkit-f040900d3c8ee961ef1bb2b6af9a6c8cd42c197d.tar.gz
craftbukkit-f040900d3c8ee961ef1bb2b6af9a6c8cd42c197d.tar.lz
craftbukkit-f040900d3c8ee961ef1bb2b6af9a6c8cd42c197d.tar.xz
craftbukkit-f040900d3c8ee961ef1bb2b6af9a6c8cd42c197d.zip
Attempt to fix console crash
-rw-r--r--src/main/java/org/bukkit/craftbukkit/util/TerminalConsoleHandler.java6
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);