This commit is contained in:
Natsumi
2023-06-01 10:38:59 +12:00
parent 2fbc880c87
commit 033e2691ae

View File

@@ -2077,7 +2077,10 @@ speechSynthesis.getVoices();
const presence = this.currentUser.presence;
let presenceLocation = this.currentUser.$locationTag;
if (presenceLocation === 'traveling') {
console.log("User is traveling, using $travelingToLocation", this.currentUser.$travelingToLocation);
console.log(
'User is traveling, using $travelingToLocation',
this.currentUser.$travelingToLocation
);
presenceLocation = this.currentUser.$travelingToLocation;
}
console.log('presence Location', presenceLocation);
@@ -2092,7 +2095,7 @@ speechSynthesis.getVoices();
return presence.world;
}
let args = await this.getUser({ userId: this.currentUser.id });
let user = args.json
let user = args.json;
console.log('presence bad, got user', user);
if (!$app.isRealInstance(user.location)) {
@@ -2102,7 +2105,10 @@ speechSynthesis.getVoices();
);
return gameLogLocation;
}
console.warn('presence outdated, got user api location instead: ', user.location);
console.warn(
'presence outdated, got user api location instead: ',
user.location
);
return this.parseLocation(user.location).worldId;
};