mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
check game running
This commit is contained in:
+4
-1
@@ -5574,7 +5574,8 @@ CefSharp.BindObjectAsync(
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.lastLocation === L.tag) {
|
||||
if (this.isGameRunning &&
|
||||
this.lastLocation === L.tag) {
|
||||
users.push(this.API.currentUser);
|
||||
}
|
||||
users.sort(compareByDisplayName);
|
||||
@@ -5991,6 +5992,7 @@ CefSharp.BindObjectAsync(
|
||||
}
|
||||
instance.users.push(ref);
|
||||
}
|
||||
if (this.isGameRunning) {
|
||||
var lastLocation$ = API.parseLocation(this.lastLocation);
|
||||
if (lastLocation$.worldId === D.id) {
|
||||
var instance = instances[lastLocation$.instanceId];
|
||||
@@ -6004,6 +6006,7 @@ CefSharp.BindObjectAsync(
|
||||
}
|
||||
instance.users.push(this.API.currentUser);
|
||||
}
|
||||
}
|
||||
var rooms = [];
|
||||
for (var instance of Object.values(instances)) {
|
||||
// due to references on callback of API.getUser()
|
||||
|
||||
Reference in New Issue
Block a user