|  |  | @ -20,7 +20,7 @@ import java.util.ArrayList; | 
			
		
	
		
		
			
				
					
					|  |  |  | import java.util.List; |  |  |  | import java.util.List; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | public class EffectsParser { |  |  |  | public class EffectsParser { | 
			
		
	
		
		
			
				
					
					|  |  |  |     public static String EffectsPath = ConfigManager.DEFAULT_DATA_DIR + "Effects.cfg"; |  |  |  |     public static String EffectsPath = ConfigManager.DEFAULT_DATA_DIR + "wpak/Effects.cfg"; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     public static void init() throws IOException { |  |  |  |     public static void init() throws IOException { | 
			
		
	
		
		
			
				
					
					|  |  |  |         ArrayList<ArrayList<String>> compiledData = new ArrayList<>(); |  |  |  |         ArrayList<ArrayList<String>> compiledData = new ArrayList<>(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         String[] lines = readLines(EffectsPath); |  |  |  |         String[] lines = readLines(EffectsPath); | 
			
		
	
	
		
		
			
				
					|  |  | @ -42,19 +42,15 @@ public class EffectsParser { | 
			
		
	
		
		
			
				
					
					|  |  |  |         CreateBlocks(compiledData); |  |  |  |         CreateBlocks(compiledData); | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |     public static String[] readLines(String filename) throws IOException { |  |  |  |     public static String[] readLines(String filename) throws IOException { | 
			
		
	
		
		
			
				
					
					|  |  |  |         File effectsCfg = new File("/home/mbdev/mb_dev/mb.data/Effects.cfg"); |  |  |  |         FileReader fileReader = new FileReader(filename); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         return effectsCfg.list(); |  |  |  |         BufferedReader bufferedReader = new BufferedReader(fileReader); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |         List<String> lines = new ArrayList<>(); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |         String line; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         //FileReader fileReader = new FileReader(filename);
 |  |  |  |         while ((line = bufferedReader.readLine()) != null) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         //BufferedReader bufferedReader = new BufferedReader(fileReader);
 |  |  |  |             lines.add(line); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         //List<String> lines = new ArrayList<>();
 |  |  |  |         } | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |        // String line;
 |  |  |  |         bufferedReader.close(); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         //while ((line = bufferedReader.readLine()) != null) {
 |  |  |  |         return lines.toArray(new String[0]); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |        //     lines.add(line);
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         //}
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         //bufferedReader.close();
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         //return lines.toArray(new String[0]);
 |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |     public static void CreateBlocks(ArrayList<ArrayList<String>> compiledData) |  |  |  |     public static void CreateBlocks(ArrayList<ArrayList<String>> compiledData) | 
			
		
	
		
		
			
				
					
					|  |  |  |     { |  |  |  |     { | 
			
		
	
	
		
		
			
				
					|  |  | 
 |