bugfix again

This commit is contained in:
biglyderv 2024-11-25 14:14:20 -05:00
parent 635c5d577c
commit 2f5c4db818
3 changed files with 10 additions and 4 deletions

View file

@ -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) {