From 5920b1170ecb875af338acd1a4a28461a275331b Mon Sep 17 00:00:00 2001 From: ci010 Date: Sun, 17 Mar 2024 14:15:34 +0800 Subject: [PATCH] fix: Respect the disable elyby options --- xmcl-keystone-ui/src/composables/instanceLaunch.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xmcl-keystone-ui/src/composables/instanceLaunch.ts b/xmcl-keystone-ui/src/composables/instanceLaunch.ts index b028aee65..af8e0d21d 100644 --- a/xmcl-keystone-ui/src/composables/instanceLaunch.ts +++ b/xmcl-keystone-ui/src/composables/instanceLaunch.ts @@ -10,7 +10,7 @@ export const kInstanceLaunch: InjectionKey> export function useInstanceLaunch(instance: Ref, resolvedVersion: Ref } | undefined>, java: Ref, userProfile: Ref, globalState: ReturnType) { const { refreshUser } = useService(UserServiceKey) const { launch, kill, on, getGameProcesses, reportOperation } = useService(LaunchServiceKey) - const { globalAssignMemory, globalMaxMemory, globalMinMemory, globalMcOptions, globalVmOptions, globalFastLaunch, globalHideLauncher, globalShowLog, globalDisableAuthlibInjector } = useGlobalSettings(globalState) + const { globalAssignMemory, globalMaxMemory, globalMinMemory, globalMcOptions, globalVmOptions, globalFastLaunch, globalHideLauncher, globalShowLog, globalDisableAuthlibInjector, globalDisableElyByAuthlib } = useGlobalSettings(globalState) const { getMemoryStatus } = useService(BaseServiceKey) const { abortRefresh } = useService(UserServiceKey) const { getOrInstallAuthlibInjector, abortAuthlibInjectorInstall } = useService(AuthlibInjectorServiceKey) @@ -116,6 +116,7 @@ export function useInstanceLaunch(instance: Ref, resolvedVersion: Ref< const hideLauncher = inst.hideLauncher ?? globalHideLauncher.value const showLog = inst.showLog ?? globalShowLog.value const fastLaunch = inst.fastLaunch ?? globalFastLaunch.value + const disableElyByAuthlib = inst.disableElybyAuthlib ?? globalDisableElyByAuthlib.value let minMemory: number | undefined = inst.minMemory ?? globalMinMemory.value let maxMemory: number | undefined = inst.maxMemory ?? globalMaxMemory.value @@ -147,6 +148,7 @@ export function useInstanceLaunch(instance: Ref, resolvedVersion: Ref< vmOptions, mcOptions, yggdrasilAgent, + disableElyByAuthlib, server: inst.server ?? undefined, } return options