srv
This commit is contained in:
		
							parent
							
								
									16e959a05c
								
							
						
					
					
						commit
						b586b161a1
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -103,8 +103,8 @@ wss.on('connection', (socket, req) => { | |||
|       socket.send("pong"); | ||||
|     } else if(message.type=="update") { | ||||
|       for (var i = players.length - 1; i >= 0; i--) { | ||||
|         if(player[i].id == message.data.id){ | ||||
|           console.log(id); | ||||
|         if(players[i].id == message.data.id){ | ||||
|           console.log(players[i].id); | ||||
|           players[i]=message.data; | ||||
|         } | ||||
|       } | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue