Fix RegistryData hasMore field definition and usage

This commit is contained in:
deathcap 2016-01-23 17:05:33 -08:00
parent 265fcd9d4c
commit c680c0d12a

View file

@ -150,7 +150,7 @@ proto.addType('FML|HS',
[
{
"name": "hasMore",
"type": "boolean"
"type": "bool"
},
/* TODO: support all fields
@ -246,7 +246,7 @@ client.on('custom_payload', function(packet) {
} else if (parsed.data.discriminator === 'RegistryData') {
console.log('RegistryData',parsed.data);
if (!parsed.data.hasMore) {
if (parsed.data.hasMore === false) {
console.log('LAST RegistryData');
writeAck(client, 3); // WAITINGSERVERCOMPLETE