mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 06:16:05 +02:00
More onPlayerJoing changes
This commit is contained in:
+4
-3
@@ -3755,20 +3755,21 @@ speechSynthesis.getVoices();
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
var playersInInstance = this.lastLocation.playerList;
|
||||||
|
if (playersInInstance.includes(ctx.displayName)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
var joining = true;
|
var joining = true;
|
||||||
var gameLogTable = this.gameLogTable.data;
|
var gameLogTable = this.gameLogTable.data;
|
||||||
for (var k = gameLogTable.length - 1; k > -1; k--) {
|
for (var k = gameLogTable.length - 1; k > -1; k--) {
|
||||||
var gameLogItem = gameLogTable[k];
|
var gameLogItem = gameLogTable[k];
|
||||||
console.log(gameLogItem);
|
|
||||||
if (gameLogItem.type === 'Notification') {
|
if (gameLogItem.type === 'Notification') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ((gameLogItem.type === 'Location') || (gameLogItem.created_at < bias)) {
|
if ((gameLogItem.type === 'Location') || (gameLogItem.created_at < bias)) {
|
||||||
console.log('break');
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if ((gameLogItem.type === 'OnPlayerJoined') && (gameLogItem.data === ctx.displayName)) {
|
if ((gameLogItem.type === 'OnPlayerJoined') && (gameLogItem.data === ctx.displayName)) {
|
||||||
console.log('joining');
|
|
||||||
joining = false;
|
joining = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user