Skip to content

Commit 3652de1

Browse files
author
Simeon Kummer
committed
fix windows hiding mc window
1 parent ec25d46 commit 3652de1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/minecraftStarter.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,10 +334,10 @@ class MinecraftStarter {
334334
detached: true
335335
};
336336

337-
// On Windows, hide the console window
337+
// On Windows, prevent cmd window from showing without hiding Minecraft
338338
if (process.platform === 'win32') {
339-
spawnOptions.windowsHide = true;
340-
spawnOptions.stdio = 'ignore';
339+
spawnOptions.shell = false; // Don't use shell, prevents cmd window
340+
spawnOptions.stdio = ['ignore', 'ignore', 'ignore']; // Suppress stdio but allow windows
341341
} else {
342342
spawnOptions.stdio = 'inherit';
343343
}

0 commit comments

Comments
 (0)