diff --git a/main.rmanifest.js b/main.rmanifest.js index 6834db9..5b8de8f 100644 --- a/main.rmanifest.js +++ b/main.rmanifest.js @@ -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`, } )