use new config
This commit is contained in:
parent
2018a5beb8
commit
0ce3efc6bf
|
@ -12,20 +12,9 @@ class Manifest {
|
|||
|
||||
static git_remote = "https://git.ragestudio.net/srgooglo/hfmc-dev"
|
||||
|
||||
static vars = {
|
||||
auth: {
|
||||
login: "https://hispanofurs.comty.app/auth",
|
||||
fetcher: "https://hispanofurs.comty.app/rsauthorize",
|
||||
getter: "https://hispanofurs_api.comty.app/data",
|
||||
},
|
||||
memory: {
|
||||
min: 2048,
|
||||
max: Config.get("memory")
|
||||
}
|
||||
}
|
||||
|
||||
configuration = {
|
||||
memory: {
|
||||
min: 2048,
|
||||
default: 4096,
|
||||
label: "Assigned Memory",
|
||||
type: "number",
|
||||
|
@ -41,7 +30,9 @@ class Manifest {
|
|||
}
|
||||
|
||||
authService = {
|
||||
...Manifest.vars.auth
|
||||
login: "https://hispanofurs.comty.app/auth",
|
||||
fetcher: "https://hispanofurs.comty.app/rsauthorize",
|
||||
getter: "https://hispanofurs_api.comty.app/data",
|
||||
}
|
||||
|
||||
installSteps = [
|
||||
|
@ -80,7 +71,10 @@ class Manifest {
|
|||
javaPath: Vars.binaries.java_jre_bin,
|
||||
root: install_path,
|
||||
authorization: auth,
|
||||
memory: Manifest.vars.memory,
|
||||
memory: {
|
||||
min: this.configuration.memory.min,
|
||||
max: Config.get("memory"),
|
||||
},
|
||||
forge: `${install_path}/forge-installer.jar`,
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue