From b0d0eb01aab0d6853dad10ff9ac4763f6b0019e5 Mon Sep 17 00:00:00 2001 From: Arne van Iterson Date: Fri, 24 Apr 2020 12:28:56 +0200 Subject: [PATCH] Now sending player data rather than controls --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index caadcc2..31d4e09 100644 --- a/src/index.js +++ b/src/index.js @@ -86,7 +86,7 @@ io.on("connection", (socket) => { if (players[socket.id]) { socket.to(players[socket.id].room).emit("update", { uuid: socket.id, - controls: data + player: data }); } });