InitializeTickLeiste auf Abwarten & Bereithalten angepasst
This commit is contained in:
parent
0d91cb7c54
commit
7472c73182
1 changed files with 6 additions and 0 deletions
|
@ -59,9 +59,15 @@ ws.onmessage = function(evt){
|
|||
players = [];
|
||||
for (i = 0; i<obj.tickLeiste.length;i++){
|
||||
for (j =0;j<obj.tickLeiste[i][1].length;j++ ){
|
||||
if (obj.tickLeiste[i][0].tickType == "Tick"){
|
||||
AddPlayer({Tick: obj.tickLeiste[i][0].tickValue, UUID: obj.tickLeiste[i][1][j][0], Name: obj.tickLeiste[i][1][j][1]});
|
||||
}
|
||||
else {
|
||||
AddPlayer({Tick: obj.tickLeiste[i][0].tickType, UUID: obj.tickLeiste[i][1][j][0], Name: obj.tickLeiste[i][1][j][1]});
|
||||
}
|
||||
}
|
||||
}
|
||||
console.log(obj);
|
||||
PlayerList();
|
||||
CurrentPlayer();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue