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,7 +42,9 @@ public class BotLog { | |||
| 
 | ||||
|     public BotLog(JTextPane outputArea){ | ||||
|         this.outputArea = outputArea; | ||||
|         initStyles(); | ||||
|         if (outputArea != null) { | ||||
|             initStyles(); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue