safer HookMethod and more sandboxed cs mods

This commit is contained in:
Oiltanker
2022-04-17 19:26:54 +03:00
parent 03881f1240
commit e52f762861
2 changed files with 8 additions and 1 deletions
@@ -34,8 +34,10 @@ namespace Barotrauma {
};
private static readonly string[] typesProhibited = new string[] {
//"System.Reflection",
//"System.Type",
"System.IO",
"Moonsharp"
"Moonsharp",
"Barotrauma.IO",
};
public static bool IsTypeAllowed(string name)
{