Disable player on joining for friends only instances

VRChat pls fix
This commit is contained in:
Natsumi
2021-07-07 21:32:34 +12:00
parent 881e2c2ad6
commit 5510d5746d

View File

@@ -3948,8 +3948,9 @@ speechSynthesis.getVoices();
var notyFeed = [];
notyFeed = notyFeed.concat(feeds.gameLog.noty, feeds.feedTable.noty, feeds.notificationTable.noty, feeds.friendLogTable.noty);
// OnPlayerJoining
var L = API.parseLocation(this.lastLocation.location); //WebSocket dosen't update friend only instances
var locationBias = Date.now() - 30000; //30 seconds
if ((this.isGameRunning) && (this.lastLocation.date < locationBias) &&
if ((this.isGameRunning) && (L.accessType !== 'friends') && (this.lastLocation.date < locationBias) &&
((this.sharedFeedFilters.wrist.OnPlayerJoining === 'Friends') || (this.sharedFeedFilters.wrist.OnPlayerJoining === 'VIP') ||
(this.sharedFeedFilters.noty.OnPlayerJoining === 'Friends') || (this.sharedFeedFilters.noty.OnPlayerJoining === 'VIP'))) {
var joiningMap = [];