make update checker ignore all characters that arent numbers
This commit is contained in:
		
							parent
							
								
									6686e98836
								
							
						
					
					
						commit
						ffd189b2fc
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -41,7 +41,7 @@ public class UpdateChecker extends BukkitRunnable {
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    private int versionToNumber(String version) {
 | 
			
		||||
        return Integer.parseInt(version.replaceAll("\\.", ""));
 | 
			
		||||
        return Integer.parseInt(version.replaceAll("[^0-9]", ""));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public Status getStatus() {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue