Use minecraft-data for protocol data (#126)

* use minecraft-data protocol data

* use minecraft-data for extra data

* Update .npmignore

* update skin data

* fix example

* remove .gitattr

* fix mcdata skin import, disable install script
This commit is contained in:
extremeheat 2021-09-25 16:57:29 -04:00 committed by GitHub
commit f8ea6c01f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 39 additions and 52032 deletions

View file

@ -15,7 +15,7 @@ function createClient (options) {
client.ping().then(data => {
const advert = advertisement.fromServerName(data)
console.log(`Connecting to server ${advert.motd} (${advert.name}), version ${advert.version}`)
client.version = options.version ?? advert.version
client.options.version = options.version ?? advert.version
connect(client)
}, client)
}