From c680c0d12acba8d57ac850b8253f86c735c6cacf Mon Sep 17 00:00:00 2001 From: deathcap Date: Sat, 23 Jan 2016 17:05:33 -0800 Subject: [PATCH] Fix RegistryData hasMore field definition and usage --- examples/client_forge/client_forge.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/client_forge/client_forge.js b/examples/client_forge/client_forge.js index 6d98868..cff0245 100644 --- a/examples/client_forge/client_forge.js +++ b/examples/client_forge/client_forge.js @@ -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