update raknet to fix errors, display errors in example
This commit is contained in:
parent
ca71cbb4fc
commit
6987c3d03b
2 changed files with 2 additions and 3 deletions
|
|
@ -12,7 +12,6 @@ var server = pmp.createServer({
|
|||
|
||||
server.on('connection', function(client) {
|
||||
client.on('unconnected_ping', function(packet) {
|
||||
console.log(packet);
|
||||
client.write('unconnected_pong', {
|
||||
pingID: packet.pingID,
|
||||
serverID: 0,
|
||||
|
|
@ -22,6 +21,6 @@ server.on('connection', function(client) {
|
|||
});
|
||||
|
||||
client.on('error', function(err) {
|
||||
// ignore it
|
||||
console.log(err.stack);
|
||||
});
|
||||
});
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
"dependencies": {
|
||||
"prismarine-nbt": "^0.2.2",
|
||||
"protodef": "^1.2.0",
|
||||
"raknet": "^1.3.0"
|
||||
"raknet": "^1.3.1"
|
||||
},
|
||||
"devDependencies": {},
|
||||
"repository": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue