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:
parent
1f7e94e5db
commit
f8ea6c01f4
22 changed files with 39 additions and 52032 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue