fixed nogui
This commit is contained in:
parent
dd82ab6dcc
commit
ce618179fd
|
@ -89,7 +89,9 @@ public class HandieBot {
|
|||
|
||||
if (args.length >= 1) {
|
||||
if (args[0].equalsIgnoreCase("-nogui")){
|
||||
System.out.println("Starting with no GUI.");
|
||||
USE_GUI = false;
|
||||
log = new BotLog(null);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -42,8 +42,10 @@ public class BotLog {
|
|||
|
||||
public BotLog(JTextPane outputArea){
|
||||
this.outputArea = outputArea;
|
||||
if (outputArea != null) {
|
||||
initStyles();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize the styles for the various log data.
|
||||
|
|
Loading…
Reference in New Issue