diff --git a/package.json b/package.json index e0ac1d7..e5edc03 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "pocket-minecraft-protocol", "version": "1.0.0", - "description": "Parse and serialize Minecraft PE packets.", + "description": "Parse and serialize Minecraft PE packets", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" @@ -17,9 +17,9 @@ ], "license": "MIT", "dependencies": { - "prismarine-nbt": "^0.2.1", + "prismarine-nbt": "^0.2.2", "protodef": "^1.1.2", - "raknet": "^1.2.0" + "raknet": "^1.3.0" }, "devDependencies": {}, "repository": { diff --git a/src/debug.js b/src/debug.js index 703e2e1..5f662bb 100644 --- a/src/debug.js +++ b/src/debug.js @@ -4,15 +4,13 @@ var debug; if(process.env.NODE_DEBUG) { var pid = process.pid; debug = function(x) { - // if console is not set up yet, then skip this. if(!console.error) return; - console.error('MC-PROTO: %d', pid, + console.error('MCPE-PROTO: %d', pid, util.format.apply(util, arguments)); }; } else { - debug = function() { - }; + debug = function() {} } module.exports = debug;