Changed default RAM limit

This commit is contained in:
= 2024-11-25 19:21:20 -07:00
parent 8208434b8f
commit ad736787e9

View File

@ -540,7 +540,7 @@ func GetBaseLaunchArgs(mcVersion string, instance Instance, libDir string, binDi
args = append(args, loggingArg) args = append(args, loggingArg)
} }
args = append(args, "-Xms512m") args = append(args, "-Xms512m")
args = append(args, "-Xmx1024m") args = append(args, "-Xmx4096m")
args = append(args, "-cp") args = append(args, "-cp")
arg := "" arg := ""
separater := ":" separater := ":"
@ -556,8 +556,6 @@ func GetBaseLaunchArgs(mcVersion string, instance Instance, libDir string, binDi
arg += filepath.Join(binDir, mcVersion, "client.jar") arg += filepath.Join(binDir, mcVersion, "client.jar")
args = append(args, arg) args = append(args, arg)
args = append(args, instance.MainClass) args = append(args, instance.MainClass)
for _, val := range searchArgs { for _, val := range searchArgs {
@ -586,7 +584,6 @@ func GetBaseLaunchArgs(mcVersion string, instance Instance, libDir string, binDi
return args, nil return args, nil
} }
func GetOfflineLaunchArgs(mcVersion string, instance Instance, libDir string, binDir string, assetDir string, gameDir string, playerName string) ([]string, error) { func GetOfflineLaunchArgs(mcVersion string, instance Instance, libDir string, binDir string, assetDir string, gameDir string, playerName string) ([]string, error) {
args, err := GetBaseLaunchArgs(mcVersion, instance, libDir, binDir, assetDir, gameDir) args, err := GetBaseLaunchArgs(mcVersion, instance, libDir, binDir, assetDir, gameDir)
if err != nil { if err != nil {