Not harsh world restrictions

This commit is contained in:
SDraw 2023-04-08 23:19:51 +03:00
parent 0e72b04386
commit 0808b5aaaa
No known key found for this signature in database
GPG key ID: BB95B4DAB2BB8BB5
4 changed files with 27 additions and 14 deletions

View file

@ -49,8 +49,7 @@ namespace ml_prm
);
// Whitelist the toggle script
var l_localComponentWhitelist = typeof(SharedFilter).GetField("_localComponentWhitelist", BindingFlags.NonPublic | BindingFlags.Static)!.GetValue(null) as HashSet<Type>;
l_localComponentWhitelist!.Add(typeof(RagdollToggle));
(typeof(SharedFilter).GetField("_localComponentWhitelist", BindingFlags.NonPublic | BindingFlags.Static)?.GetValue(null) as HashSet<Type>)?.Add(typeof(RagdollToggle));
MelonLoader.MelonCoroutines.Start(WaitForLocalPlayer());
}