From 8266750be7c53a618b76935ff41a475586fbc8ed Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Sat, 9 Apr 2016 19:59:05 +0200 Subject: [PATCH] add radius update --- examples/server.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/server.js b/examples/server.js index 3e79cf6..0c26e3f 100644 --- a/examples/server.js +++ b/examples/server.js @@ -72,8 +72,12 @@ server.on('connection', function(client) { const chunkRadius = packet.chunk_radius; // TODO : to fix, no idea what to send - for (let x = 0; x < 1; x++) { - for (let z = 0; z < 1; z++) { + client.writeMCPE('mcpe_chunk_radius_update',{ + chunk_radius:1 + }); + + for (let x = -1; x <=1; x++) { + for (let z = -1; z <=1; z++) { client.writeBatch([{"name":"mcpe","params":{name:"mcpe_full_chunk_data",params:{ chunk_x: x, chunk_z: z,