From f2dee17c269b7346900d665e975944da80f8efef Mon Sep 17 00:00:00 2001 From: Anthony Hilyard Date: Mon, 3 Oct 2022 16:14:28 -0700 Subject: [PATCH] Absolute paths for Minecraft 1.12.2 and earlier. --- src/common/reducers/actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/reducers/actions.js b/src/common/reducers/actions.js index 874c04a53..e926c5794 100644 --- a/src/common/reducers/actions.js +++ b/src/common/reducers/actions.js @@ -3185,7 +3185,7 @@ export function launchInstance(instanceName, forceQuit = false) { } const replaceRegex = [ - process.platform === 'win32' + process.platform === 'win32' && gt(coerce(loader?.mcVersion), coerce('1.12.2')) ? new RegExp(userData.replace(/([.?*+^$[\]\\(){}|-])/g, '\\$1'), 'g') : null, replaceWith