Revert, breaks current user instance timer

This commit is contained in:
Natsumi
2021-03-28 18:25:13 +13:00
parent fc19ce7371
commit 9ef2b0f9f6

View File

@@ -7472,7 +7472,10 @@ speechSynthesis.getVoices();
}
if (this.isGameRunning &&
this.lastLocation.location === L.tag) {
var ref = API.currentUser;
var ref = API.cachedUsers.get(API.currentUser.id);
if (typeof ref === 'undefined') {
ref = API.currentUser;
}
var playersInInstance = this.lastLocation.playerList;
if (playersInInstance.includes(ref.displayName)) {
users.push(ref);
@@ -8027,7 +8030,10 @@ speechSynthesis.getVoices();
};
instances[instance.id] = instance;
}
var ref = API.currentUser;
var ref = API.cachedUsers.get(API.currentUser.id);
if (typeof ref === 'undefined') {
ref = API.currentUser;
}
var playersInInstance = this.lastLocation.playerList;
if (playersInInstance.includes(ref.displayName)) {
instance.users.push(ref);