From 1564b39b0df3bce9bab5a2374a85a8b3db1c384d Mon Sep 17 00:00:00 2001 From: Natsumi Date: Sat, 30 Jul 2022 03:16:44 +1200 Subject: [PATCH] Fixes --- html/src/app.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/html/src/app.js b/html/src/app.js index 4816a37f..beea1622 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -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;