From 09c1d4a70dc501f19338d2c5c6afe7a42f667d59 Mon Sep 17 00:00:00 2001 From: Esme Povirk Date: Fri, 8 Oct 2021 15:41:01 -0500 Subject: [PATCH] Use LinkedList instead of Queue to find System.dll. --- Sources/VRage.Library/Compiler/IlChecker.cs | 2 +- Sources/VRage.Scripting/MyScriptWhitelist.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/VRage.Library/Compiler/IlChecker.cs b/Sources/VRage.Library/Compiler/IlChecker.cs index e4bdd0e3e..fd1f11d8c 100644 --- a/Sources/VRage.Library/Compiler/IlChecker.cs +++ b/Sources/VRage.Library/Compiler/IlChecker.cs @@ -26,7 +26,7 @@ static IlChecker() AllowNamespaceOfTypeCommon(typeof(System.Collections.IEnumerator)); AllowNamespaceOfTypeCommon(typeof(System.Collections.Generic.IEnumerable<>)); AllowNamespaceOfTypeCommon(typeof(System.Collections.Generic.HashSet<>)); - AllowNamespaceOfTypeCommon(typeof(System.Collections.Generic.Queue<>)); + AllowNamespaceOfTypeCommon(typeof(System.Collections.Generic.LinkedList<>)); AllowNamespaceOfTypeCommon(typeof(System.Collections.Generic.ListExtensions)); AllowNamespaceOfTypeCommon(typeof(System.Linq.Enumerable)); AllowNamespaceOfTypeCommon(typeof(System.Text.StringBuilder)); diff --git a/Sources/VRage.Scripting/MyScriptWhitelist.cs b/Sources/VRage.Scripting/MyScriptWhitelist.cs index 38f4f3a1b..2acf008e2 100644 --- a/Sources/VRage.Scripting/MyScriptWhitelist.cs +++ b/Sources/VRage.Scripting/MyScriptWhitelist.cs @@ -53,7 +53,7 @@ public MyScriptWhitelist(MyScriptCompiler scriptCompiler) typeof(System.Collections.IEnumerator), typeof(System.Collections.Generic.IEnumerable<>), typeof(System.Collections.Generic.HashSet<>), - typeof(System.Collections.Generic.Queue<>), + typeof(System.Collections.Generic.LinkedList<>), typeof(System.Collections.Concurrent.ConcurrentDictionary<,>), typeof(System.Collections.Concurrent.ConcurrentBag<>), typeof(System.Linq.Enumerable),