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:
+15
-12
@@ -5574,7 +5574,8 @@ CefSharp.BindObjectAsync(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.lastLocation === L.tag) {
|
if (this.isGameRunning &&
|
||||||
|
this.lastLocation === L.tag) {
|
||||||
users.push(this.API.currentUser);
|
users.push(this.API.currentUser);
|
||||||
}
|
}
|
||||||
users.sort(compareByDisplayName);
|
users.sort(compareByDisplayName);
|
||||||
@@ -5991,18 +5992,20 @@ CefSharp.BindObjectAsync(
|
|||||||
}
|
}
|
||||||
instance.users.push(ref);
|
instance.users.push(ref);
|
||||||
}
|
}
|
||||||
var lastLocation$ = API.parseLocation(this.lastLocation);
|
if (this.isGameRunning) {
|
||||||
if (lastLocation$.worldId === D.id) {
|
var lastLocation$ = API.parseLocation(this.lastLocation);
|
||||||
var instance = instances[lastLocation$.instanceId];
|
if (lastLocation$.worldId === D.id) {
|
||||||
if (instance === undefined) {
|
var instance = instances[lastLocation$.instanceId];
|
||||||
instance = {
|
if (instance === undefined) {
|
||||||
id: lastLocation$.instanceId,
|
instance = {
|
||||||
occupants: 1,
|
id: lastLocation$.instanceId,
|
||||||
users: []
|
occupants: 1,
|
||||||
};
|
users: []
|
||||||
instances[instance.id] = instance;
|
};
|
||||||
|
instances[instance.id] = instance;
|
||||||
|
}
|
||||||
|
instance.users.push(this.API.currentUser);
|
||||||
}
|
}
|
||||||
instance.users.push(this.API.currentUser);
|
|
||||||
}
|
}
|
||||||
var rooms = [];
|
var rooms = [];
|
||||||
for (var instance of Object.values(instances)) {
|
for (var instance of Object.values(instances)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user