mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 22:33:50 +02:00
Fix OnPlayerLeft location traveling
This commit is contained in:
@@ -8105,6 +8105,7 @@ speechSynthesis.getVoices();
|
||||
switch (gameLog.type) {
|
||||
case 'location-destination':
|
||||
if (this.isGameRunning) {
|
||||
this.lastLocationReset();
|
||||
this.lastLocation.location = 'traveling';
|
||||
this.lastLocationDestination = gameLog.location;
|
||||
this.lastLocationDestinationTime = Date.parse(gameLog.dt);
|
||||
@@ -8185,6 +8186,11 @@ speechSynthesis.getVoices();
|
||||
database.addGamelogJoinLeaveToDatabase(entry);
|
||||
break;
|
||||
case 'player-left':
|
||||
if (
|
||||
!this.lastLocation.playerList.has(gameLog.userDisplayName)
|
||||
) {
|
||||
return;
|
||||
}
|
||||
var time = 0;
|
||||
var ref = this.lastLocation.playerList.get(
|
||||
gameLog.userDisplayName
|
||||
@@ -10919,6 +10925,7 @@ speechSynthesis.getVoices();
|
||||
|
||||
$app.methods.getFriendLog = async function () {
|
||||
await database.cleanLegendFromFriendLog(); // fix database spam crap
|
||||
await database.fixGameLogTraveling(); // fix past bug with incorrect gameLog locations
|
||||
var friendLogCurrentArray = await database.getFriendLogCurrent();
|
||||
for (var friend of friendLogCurrentArray) {
|
||||
this.friendLog.set(friend.userId, friend);
|
||||
|
||||
Reference in New Issue
Block a user