This commit is contained in:
Natsumi
2022-07-30 03:16:44 +12:00
parent 5293ee8d3f
commit 1564b39b0d

View File

@@ -8174,7 +8174,14 @@ speechSynthesis.getVoices();
database.addGamelogJoinLeaveToDatabase(entry);
break;
case 'portal-spawn':
if (this.ipcEnabled && this.isGameRunning) {
var bias = Date.parse($app.lastLocation.date) + 30 * 1000;
if (
(this.ipcEnabled && this.isGameRunning) ||
!this.lastLocation.location ||
bias < Date.now()
) {
console.log('ignored portal spawn');
// 30sec wait for world portals to load
return;
}
var entry = {
@@ -8295,7 +8302,7 @@ speechSynthesis.getVoices();
}
});
break;
case 'opvenvr-init':
case 'openvr-init':
this.isGameNoVR = false;
configRepository.setBool('isGameNoVR', this.isGameNoVR);
break;