socket id error fix
This commit is contained in:
parent
fb3698b4bf
commit
8fee6deed2
@ -101,8 +101,8 @@ socket.on('updatePlayers', (bPlayers) =>{
|
|||||||
|
|
||||||
})
|
})
|
||||||
// console.log(fPlayers[id])
|
// console.log(fPlayers[id])
|
||||||
fPlayers[socket.id].username = localStorage.getItem('username')
|
fPlayers[id].username = localStorage.getItem('username')
|
||||||
socket.emit('username',fPlayers[socket.id].username);
|
socket.emit('username',fPlayers[id].username);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// if players already exist
|
// if players already exist
|
||||||
|
Loading…
Reference in New Issue
Block a user