public static boolean isModVersionAccepted(String modId,int[] versionInt,String deliminator){
  String version=getModVersion(modId);
  if (!version.isEmpty()) {
    String[] split=version.split(deliminator);
    for (int i=0; i < split.length && i < versionInt.length; i++) {
      if (compareStringInt(split[i],versionInt[i]))       return false;
    }
    return true;
  }
  return false;
}

public static boolean isModVersionAccepted ( String modId , int [ ] versionInt , String deliminator ) { String version = getModVersion ( modId ) ; if ( ! version . isEmpty ( ) ) { String [ ] split = version . split ( deliminator ) ; for ( int i = 0 ; i < split . length && i < versionInt . length ; i ++ ) { if ( compareStringInt ( split [ i ] , versionInt [ i ] ) ) return false ; } return true ; } return false ; }
calculates whether the loaded version of a mod is newer than required
