Skip to content
This repository was archived by the owner on Apr 16, 2025. It is now read-only.

Commit c4cd605

Browse files
committed
fix: duplicate players in player list
This should actually fix #33 closes #33
1 parent 4bef354 commit c4cd605

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

dist/first-bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/src/socket.1.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ function doPlayerUpdate(players) {
330330

331331
players.forEach(function (plr) {
332332
if (plr == null || plr.name == undefined || plr.name == "") return;
333+
if (plr.identifer == undefined || plr.identifer == "") return;
333334

334335
if (!(plr.identifer in localCache)) {
335336
localCache[plr.identifer] = { marker: null, lastHtml: null };

0 commit comments

Comments
 (0)