mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
Disable player on joining for friends only instances
VRChat pls fix
This commit is contained in:
+2
-1
@@ -3948,8 +3948,9 @@ speechSynthesis.getVoices();
|
|||||||
var notyFeed = [];
|
var notyFeed = [];
|
||||||
notyFeed = notyFeed.concat(feeds.gameLog.noty, feeds.feedTable.noty, feeds.notificationTable.noty, feeds.friendLogTable.noty);
|
notyFeed = notyFeed.concat(feeds.gameLog.noty, feeds.feedTable.noty, feeds.notificationTable.noty, feeds.friendLogTable.noty);
|
||||||
// OnPlayerJoining
|
// OnPlayerJoining
|
||||||
|
var L = API.parseLocation(this.lastLocation.location); //WebSocket dosen't update friend only instances
|
||||||
var locationBias = Date.now() - 30000; //30 seconds
|
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.wrist.OnPlayerJoining === 'Friends') || (this.sharedFeedFilters.wrist.OnPlayerJoining === 'VIP') ||
|
||||||
(this.sharedFeedFilters.noty.OnPlayerJoining === 'Friends') || (this.sharedFeedFilters.noty.OnPlayerJoining === 'VIP'))) {
|
(this.sharedFeedFilters.noty.OnPlayerJoining === 'Friends') || (this.sharedFeedFilters.noty.OnPlayerJoining === 'VIP'))) {
|
||||||
var joiningMap = [];
|
var joiningMap = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user