mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-05 03:19:23 +00:00
Too many changes
This commit is contained in:
parent
45557943c4
commit
a22e5992d0
72 changed files with 1064 additions and 927 deletions
|
@ -42,14 +42,9 @@ namespace ml_prm
|
|||
System.Collections.IEnumerator WaitForWhitelist()
|
||||
{
|
||||
// Whitelist the toggle script
|
||||
FieldInfo l_field = typeof(SharedFilter).GetField("_localComponentWhitelist", BindingFlags.NonPublic | BindingFlags.Static);
|
||||
HashSet<Type> l_hashSet = l_field?.GetValue(null) as HashSet<Type>;
|
||||
while(l_hashSet == null)
|
||||
{
|
||||
l_hashSet = l_field?.GetValue(null) as HashSet<Type>;
|
||||
while(SharedFilter.LocalComponentWhitelist == null)
|
||||
yield return null;
|
||||
}
|
||||
l_hashSet.Add(typeof(RagdollToggle));
|
||||
SharedFilter.LocalComponentWhitelist.Add(typeof(RagdollToggle));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue