fixed nogui

This commit is contained in:
Andrew Lalis 2017-06-28 16:02:13 +02:00
parent dd82ab6dcc
commit ce618179fd
2 changed files with 5 additions and 1 deletions

View File

@ -89,7 +89,9 @@ public class HandieBot {
if (args.length >= 1) { if (args.length >= 1) {
if (args[0].equalsIgnoreCase("-nogui")){ if (args[0].equalsIgnoreCase("-nogui")){
System.out.println("Starting with no GUI.");
USE_GUI = false; USE_GUI = false;
log = new BotLog(null);
} }
} }

View File

@ -42,8 +42,10 @@ public class BotLog {
public BotLog(JTextPane outputArea){ public BotLog(JTextPane outputArea){
this.outputArea = outputArea; this.outputArea = outputArea;
if (outputArea != null) {
initStyles(); initStyles();
} }
}
/** /**
* Initialize the styles for the various log data. * Initialize the styles for the various log data.