Add @waff/yggdrasil

As the author of node-yggdrasil doesn't seem to accept new PRs, I've created a fork which fixes phin error (thanks to @rom1505) and adds more meaningful messages for a couple of CloudFlare errors as proposed in https://github.com/PrismarineJS/mineflayer/issues/880#issuecomment-549127642
This commit is contained in:
Kasper Seweryn 2019-11-06 01:40:21 +01:00
parent dc713f0cf3
commit e36e8fe0d3
4 changed files with 5 additions and 5 deletions

View file

@ -42,6 +42,7 @@
"standard": "^14.0.0"
},
"dependencies": {
"@waff/yggdrasil": "^1.1.4",
"buffer-equal": "^1.0.0",
"debug": "^4.1.0",
"endian-toggle": "^0.0.0",
@ -52,7 +53,6 @@
"prismarine-nbt": "^1.2.1",
"protodef": "^1.6.7",
"readable-stream": "^3.0.6",
"uuid-1345": "^0.99.6",
"yggdrasil": "^1.1.1"
"uuid-1345": "^0.99.6"
}
}

View file

@ -1,4 +1,4 @@
const yggdrasil = require('yggdrasil')({})
const yggdrasil = require('@waff/yggdrasil')({})
const UUID = require('uuid-1345')
module.exports = function (client, options) {

View file

@ -1,7 +1,7 @@
'use strict'
const crypto = require('crypto')
const yggserver = require('yggdrasil').server({})
const yggserver = require('@waff/yggdrasil').server({})
const debug = require('debug')('minecraft-protocol')
module.exports = function (client, options) {

View file

@ -1,4 +1,4 @@
const yggserver = require('yggdrasil').server({})
const yggserver = require('@waff/yggdrasil').server({})
const UUID = require('uuid-1345')
const bufferEqual = require('buffer-equal')
const crypto = require('crypto')