Now sending player data rather than controls

This commit is contained in:
Arne van Iterson 2020-04-24 12:28:56 +02:00
parent e0baa9cd3f
commit b0d0eb01aa

View File

@ -86,7 +86,7 @@ io.on("connection", (socket) => {
if (players[socket.id]) { if (players[socket.id]) {
socket.to(players[socket.id].room).emit("update", { socket.to(players[socket.id].room).emit("update", {
uuid: socket.id, uuid: socket.id,
controls: data player: data
}); });
} }
}); });