Merge pull request #8 from rileyscool/master

fix package.json
This commit is contained in:
Robert Whitney
2024-12-22 18:58:14 -08:00
committed by GitHub
2 changed files with 5 additions and 5 deletions

View File

@@ -13,7 +13,6 @@
"mineflayer": "^4.0.0", "mineflayer": "^4.0.0",
"minimatch": "^3.0.4", "minimatch": "^3.0.4",
"node-mcpe-color-parser": "^0.1.1", "node-mcpe-color-parser": "^0.1.1",
"tar-stream": "^2.2.0", "tar-stream": "^2.2.0"
"zlib": "^1.0.5"
} }
} }

View File

@@ -127,7 +127,8 @@ scan.on('result', function(data){
var theText = data.ip + ":" + data.port + "\t" + pingRes.version.name + "\t" + pingRes.players.online + " of " + pingRes.players.max + " players"; var theText = data.ip + ":" + data.port + "\t" + pingRes.version.name + "\t" + pingRes.players.online + " of " + pingRes.players.max + " players";
if(process.params['show-desc']) if(process.params['show-desc'])
{ {
theText += "\t"+mcp(pingRes.description.text).replace(/\n/g, ' '); theText += "\t"+mcp(pingRes.description).replace(/\n/g, ' ');
// pingRes.description is a string, not an object
} }
if (SCAN_OPTS_OUTPUT_CSV) if (SCAN_OPTS_OUTPUT_CSV)
{ {
@@ -229,4 +230,4 @@ scan.on('error', err => {
scan.on('done', () => { scan.on('done', () => {
console.log("Scan finished!"); console.log("Scan finished!");
}); });
scan.run(); scan.run();