bugfix again
This commit is contained in:
parent
635c5d577c
commit
2f5c4db818
3 changed files with 10 additions and 4 deletions
3
game.js
3
game.js
|
@ -21,6 +21,7 @@ class Game extends GameBasic {
|
|||
if (!client.active) continue;
|
||||
|
||||
let wsEnt = client.ent;
|
||||
wsEnt.isYou = true;
|
||||
if (!wsEnt) continue;
|
||||
|
||||
let filtered;
|
||||
|
@ -40,6 +41,8 @@ class Game extends GameBasic {
|
|||
});
|
||||
|
||||
client.send(JSON.stringify(filtered));
|
||||
|
||||
wsEnt.isYou = false;
|
||||
}
|
||||
|
||||
for (let entity of entities) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue