why are we manually collecting GC in cs

This commit is contained in:
Evil Factory
2022-05-07 14:20:16 -03:00
parent 4aa5c79edb
commit 11220bcff2
@@ -336,8 +336,6 @@ namespace Barotrauma
CsScriptLoader.Clear(); CsScriptLoader.Clear();
CsScriptLoader.Unload(); CsScriptLoader.Unload();
CsScriptLoader = null; CsScriptLoader = null;
GC.Collect();
GC.WaitForPendingFinalizers();
} }
} }