World Restriction Check

Disabled incoming messages when world is Restricted.
This commit is contained in:
SketchFoxsky 2024-09-20 18:12:09 -04:00 committed by GitHub
parent 71d780248f
commit 498dcff8b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,6 +43,8 @@ public static partial class ModNetwork
if (ModSettings.Entry_FriendsOnly.Value && !Friends.FriendsWith(sender)) if (ModSettings.Entry_FriendsOnly.Value && !Friends.FriendsWith(sender))
return false; // ignore messages from non-friends if friends only is enabled return false; // ignore messages from non-friends if friends only is enabled
if (StickerSystem.RestrictedInstance == true) // ignore messages from users when the world is restricted. This also includes older or modified version of Stickers mod.
return false;
return true; return true;
} }