Fix some instant crashing

Happens very quickly on practice mode when spam switching tasks
This commit is contained in:
Atony committed 2026-07-08 17:31:20 -05:00
1 parent 850e82155c
commit 3eb0a4fdb3
1 file changed
+1 -2
+1 -2
View File
@@ -342,9 +342,8 @@ public static class Extensions
{
yield return Resources.UnloadUnusedAssets();
GC.Collect(0, GCCollectionMode.Forced, blocking: true);
GC.WaitForPendingFinalizers();
GC.Collect(0, GCCollectionMode.Forced, blocking: true);
GC.Collect(0, GCCollectionMode.Forced);
}
/// <summary>