We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5e1ef4 commit 80a0802Copy full SHA for 80a0802
src/providers/InstallFabric.ts
@@ -75,9 +75,11 @@ export async function installFabric(ref: Ref) {
75
data['profiles'][map.value.versionName]['name'] = map.value.versionName;
76
data['profiles'][map.value.versionName]['icon'] =
77
launcher.value.launcher_icon; // in base64
78
+ // convert to MB to handle fractional values (eg. 10.5GB)
79
+ const memoryInMb = Math.round(memory.value * 1024);
80
data['profiles'][map.value.versionName][
81
'javaArgs'
- ] = `-Xmx${memory.value}G`;
82
+ ] = `-Xmx${memoryInMb}M`;
83
84
fs.writeFileSync(profileFilePath, JSON.stringify(data), 'utf-8');
85
0 commit comments