mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-12-04 21:11:04 -05:00
Fix RegistryData hasMore field definition and usage
This commit is contained in:
parent
265fcd9d4c
commit
c680c0d12a
1 changed files with 2 additions and 2 deletions
|
@ -150,7 +150,7 @@ proto.addType('FML|HS',
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"name": "hasMore",
|
"name": "hasMore",
|
||||||
"type": "boolean"
|
"type": "bool"
|
||||||
},
|
},
|
||||||
|
|
||||||
/* TODO: support all fields
|
/* TODO: support all fields
|
||||||
|
@ -246,7 +246,7 @@ client.on('custom_payload', function(packet) {
|
||||||
|
|
||||||
} else if (parsed.data.discriminator === 'RegistryData') {
|
} else if (parsed.data.discriminator === 'RegistryData') {
|
||||||
console.log('RegistryData',parsed.data);
|
console.log('RegistryData',parsed.data);
|
||||||
if (!parsed.data.hasMore) {
|
if (parsed.data.hasMore === false) {
|
||||||
console.log('LAST RegistryData');
|
console.log('LAST RegistryData');
|
||||||
|
|
||||||
writeAck(client, 3); // WAITINGSERVERCOMPLETE
|
writeAck(client, 3); // WAITINGSERVERCOMPLETE
|
||||||
|
|
Loading…
Reference in a new issue