修复 Node10 WriteFile 强制需求回调

This commit is contained in:
Suwings 2019-10-31 12:44:21 +08:00
parent 8de0e6329a
commit de78ad2de1

View File

@ -22,7 +22,7 @@ module.exports.createServerDir = (serverName, cwd) => {
fs.mkdirSync(cwd);
}
//EULA.txt 写入
fs.writeFile(cwd + '/eula.txt', 'eula=true');
fs.writeFile(cwd + '/eula.txt', 'eula=true', () => { });
}
module.exports.createServer = (serverName, config) => {