fix indentation and a few other stuff webstorm felt like fixing (for example if (condition) -> if(condition) since that was the more frequent style in node-minecraft-protocol)

This commit is contained in:
Romain Beaumont 2015-05-14 22:08:49 +02:00
parent 471b53de8f
commit 1dec8ccffd
30 changed files with 1130 additions and 1074 deletions
examples/server_helloworld

View file

@ -8,10 +8,10 @@ var server = mc.createServer(options);
server.on('login', function(client) {
var addr = client.socket.remoteAddress;
console.log('Incoming connection', '('+addr+')');
console.log('Incoming connection', '(' + addr + ')');
client.on('end', function() {
console.log('Connection closed', '('+addr+')');
console.log('Connection closed', '(' + addr + ')');
});
// send init data so client will start rendering world
@ -41,7 +41,7 @@ server.on('login', function(client) {
'Hello, world!'
]
};
client.write('chat', { message: JSON.stringify(msg), position: 0 });
client.write('chat', {message: JSON.stringify(msg), position: 0});
});
server.on('error', function(error) {