forked from arne/TanksJS-Server
Now sending player data rather than controls
This commit is contained in:
parent
e0baa9cd3f
commit
b0d0eb01aa
@ -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
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user