mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 15:17:36 +00:00
feat: backport 4.3.0 changes into master (#432)
* chore: backport all 4.3.0 changes * docs: remove changelog line that does not apply
This commit is contained in:
parent
d37c5b7f2b
commit
89515cb677
6 changed files with 48 additions and 3 deletions
|
|
@ -42,7 +42,7 @@ export default class minecraftvanilla extends Core {
|
|||
const str = reader.rest().toString('utf8')
|
||||
this.logger.debug(str)
|
||||
|
||||
const json = JSON.parse(str)
|
||||
const json = JSON.parse(str.substring(0, strLen))
|
||||
delete json.favicon
|
||||
|
||||
state.raw = json
|
||||
|
|
@ -57,6 +57,16 @@ export default class minecraftvanilla extends Core {
|
|||
})
|
||||
}
|
||||
}
|
||||
|
||||
// Better Compatibility Checker mod support
|
||||
let bccJson = {}
|
||||
|
||||
if (str.length > strLen) {
|
||||
const bccStr = str.substring(strLen + 1)
|
||||
bccJson = JSON.parse(bccStr)
|
||||
}
|
||||
|
||||
state.raw.bcc = bccJson
|
||||
}
|
||||
|
||||
varIntBuffer (num) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue