OnPlayerJoining when user comes online into an instance

This commit is contained in:
Natsumi
2021-10-19 01:32:11 +13:00
parent b32059c131
commit e84775c12b

View File

@@ -4163,6 +4163,7 @@ speechSynthesis.getVoices();
var locationBias = Date.now() - 30000; // 30 seconds var locationBias = Date.now() - 30000; // 30 seconds
if ( if (
this.isGameRunning && this.isGameRunning &&
this.lastLocation.location &&
L.accessType !== 'friends' && L.accessType !== 'friends' &&
this.lastLocation.date < locationBias && this.lastLocation.date < locationBias &&
(this.sharedFeedFilters.wrist.OnPlayerJoining === 'Friends' || (this.sharedFeedFilters.wrist.OnPlayerJoining === 'Friends' ||
@@ -4179,7 +4180,7 @@ speechSynthesis.getVoices();
break; break;
} }
if ( if (
ctx.type === 'GPS' && (ctx.type === 'GPS' || ctx.type === 'Online') &&
ctx.location === this.lastLocation.location ctx.location === this.lastLocation.location
) { ) {
if (joiningMap[ctx.displayName]) { if (joiningMap[ctx.displayName]) {