Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xmdhs committed Jul 5, 2020
1 parent 6fe4e51 commit e159ac4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ func main() {
if credit {
credits()
}
if strings.Contains(f.Download, "|") {
s := strings.Split(f.Download, "|")
if strings.Contains(f.Atype, "|") {
s := strings.Split(f.Atype, "|")
download.Fail = true
download.Types = s
}
Expand Down Expand Up @@ -92,7 +92,7 @@ func init() {
flag.StringVar(&f.RAM, "ram", "2048", `分配启动游戏的内存大小(mb)`)
flag.StringVar(&f.Runflag, "flag", "", "自定的启动参数,比如 -XX:+AggressiveOpts -XX:+UseCompressedOops")
flag.StringVar(&f.Proxy, `proxy`, "", `设置下载用的代理(http)`)
flag.StringVar(&f.Atype, "type", "", `设置下载源。可选 bmclapi tss 和 mcbbs,不设置此项则使用官方下载源。可以使用 bmclapi|vanilla 的形式来负载均衡的使用两个下载源。`)
flag.StringVar(&f.Atype, "type", "", `设置下载源。可选 bmclapi tss 和 mcbbs,不设置此项则使用官方下载源。可以使用 "bmclapi|vanilla" 的形式来负载均衡的使用两个下载源。`)
flag.BoolVar(&f.Independent, "independent", true, "是否开启版本隔离")
flag.BoolVar(&f.Outmsg, "test", true, "启动游戏前是否效验文件的完整和正确性")
flag.BoolVar(&credit, "credits", false, "使用项目")
Expand Down

0 comments on commit e159ac4

Please sign in to comment.