mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 14:37:44 +01:00
Merge pull request #385 from tgstation/Cyberboss-patch-1
Fixes RepoConfig.LoadArray
This commit is contained in:
@@ -91,10 +91,9 @@ namespace TGS.Server
|
||||
/// <returns></returns>
|
||||
private static IList<string> LoadArray(object o)
|
||||
{
|
||||
var array = (object[])o;
|
||||
var res = new List<string>();
|
||||
foreach (var I in array)
|
||||
res.Add((string)I);
|
||||
foreach (var I in ((JArray)o))
|
||||
res.Add(I.ToObject<string>());
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user