mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
Fix failed API requests stopping portal logs
This commit is contained in:
+8
-4
@@ -8943,9 +8943,13 @@ speechSynthesis.getVoices();
|
|||||||
ref
|
ref
|
||||||
) {
|
) {
|
||||||
var L = API.parseLocation(instanceId);
|
var L = API.parseLocation(instanceId);
|
||||||
var args = await API.getCachedWorld({
|
var name = instanceId;
|
||||||
worldId: L.worldId
|
try {
|
||||||
});
|
var args = await API.getCachedWorld({
|
||||||
|
worldId: L.worldId
|
||||||
|
});
|
||||||
|
name = args.ref.name;
|
||||||
|
} catch (err) {}
|
||||||
this.addPhotonEventToGameLog({
|
this.addPhotonEventToGameLog({
|
||||||
created_at,
|
created_at,
|
||||||
type: 'PortalSpawn',
|
type: 'PortalSpawn',
|
||||||
@@ -8953,7 +8957,7 @@ speechSynthesis.getVoices();
|
|||||||
location: this.lastLocation.location,
|
location: this.lastLocation.location,
|
||||||
userId: ref.id,
|
userId: ref.id,
|
||||||
instanceId,
|
instanceId,
|
||||||
worldName: args.ref.name
|
worldName: name
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user