diff --git a/src/bin.js b/src/bin.js index 8489b16..86cbea6 100644 --- a/src/bin.js +++ b/src/bin.js @@ -34,7 +34,7 @@ require('./bootstrap').then(async () => { const oak = createClient() const params = [] - const instance = spawn(binary, params, { stdio: 'inherit' }); + const instance = spawn(binary, params, { stdio: 'inherit', cwd: process.cwd() }); /* call gamemode code */ gamemode(oak)