Skip to content

Commit

Permalink
players fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsc0301 committed Sep 13, 2023
1 parent 093a631 commit 4aa616a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class App {
return;
}

const newPlayer = Object.assign(new Player(player_id, this.scene, false), this.currentRoom.players[player_id]);
const newPlayer = Object.assign(new Player(player_id, this.scene, false), newRoomData.players[player_id]);
newPlayer.update(newPos, newRot);

this.currentRoom.players[player_id] = newPlayer;
Expand Down

0 comments on commit 4aa616a

Please sign in to comment.