Stop auto cache when joining world

This commit is contained in:
Natsumi
2021-09-22 01:25:58 +12:00
parent ee38e4b7ff
commit 3a9ac4b4aa
2 changed files with 7 additions and 4 deletions

View File

@@ -7440,7 +7440,8 @@ speechSynthesis.getVoices();
this.addGameLogEntry(gameLog, this.lastLocation.location, pushToTable);
};
$app.lastLocationDestinationTime = 0;
$app.data.lastLocationDestination = '';
$app.data.lastLocationDestinationTime = 0;
$app.methods.addGameLogEntry = function (gameLog, location, pushToTable) {
var userId = '';
@@ -7458,6 +7459,7 @@ speechSynthesis.getVoices();
this.cancelVRChatCacheDownload(gameLog.location);
this.clearNowPlaying();
}
this.lastLocationDestination = gameLog.location;
this.lastLocationDestinationTime = Date.parse(gameLog.dt);
var entry = {
created_at: gameLog.dt,
@@ -14610,7 +14612,7 @@ speechSynthesis.getVoices();
return;
}
if (
this.downloadCurrent.type !== 'Auto' ||
this.downloadCurrent.type !== 'Auto' &&
!this.cacheAutoDownloadHistory.has(assetUrl)
) {
this.cacheAutoDownloadHistory.add(assetUrl);
@@ -14740,7 +14742,8 @@ speechSynthesis.getVoices();
if (
!L.worldId ||
this.downloadQueue.has(L.worldId) ||
this.downloadCurrent.id === L.worldId
this.downloadCurrent.id === L.worldId ||
this.lastLocationDestination === location
) {
return;
}