mirror of
https://github.com/MCSManager/UI.git
synced 2025-02-17 18:39:30 +08:00
新增 缺少的关键参数
This commit is contained in:
parent
1531560795
commit
962386a772
@ -192,7 +192,7 @@ export default {
|
||||
maxMemory: "",
|
||||
minMemory: "",
|
||||
additional: "",
|
||||
suffix: ""
|
||||
suffix: "nogui"
|
||||
}
|
||||
};
|
||||
},
|
||||
@ -221,6 +221,7 @@ export default {
|
||||
const xmx = this.command.maxMemory ? `-Xmx${this.command.maxMemory}` : null;
|
||||
const xms = this.command.minMemory ? `-Xms${this.command.minMemory}` : null;
|
||||
const cmdArray = [`${this.command.javaPath ? `"${this.command.javaPath}"` : "java"}`];
|
||||
cmdArray.push("-Dfile.encoding=UTF-8");
|
||||
if (xmx) cmdArray.push(xmx);
|
||||
if (xms) cmdArray.push(xms);
|
||||
if (this.command.additional) cmdArray.push(this.command.additional);
|
||||
|
Loading…
Reference in New Issue
Block a user