This commit is contained in:
pypy
2020-01-12 08:40:25 +09:00
parent f72adb9d90
commit e851460cf0
+4 -2
View File
@@ -5479,7 +5479,8 @@ if (window.CefSharp) {
} }
D.users = []; D.users = [];
if (!L.isOffline) { if (!L.isOffline) {
for (var { ref } of this.friends.values()) { for (var userId of this.friends.keys()) {
var ref = API.cachedUsers.get(userId);
if (ref && if (ref &&
ref.location === D.ref.location) { ref.location === D.ref.location) {
D.users.push(ref); D.users.push(ref);
@@ -5886,7 +5887,8 @@ if (window.CefSharp) {
users: [] users: []
}; };
} }
for (var { ref } of this.friends.values()) { for (var userId of this.friends.keys()) {
var ref = API.cachedUsers.get(userId);
if (ref && if (ref &&
ref.$location.worldId === D.id) { ref.$location.worldId === D.id) {
({ instanceId } = ref.$location); ({ instanceId } = ref.$location);