diff --git a/BepInEx/ThreadingHelper.cs b/BepInEx/ThreadingHelper.cs index 840ed43..c121ed4 100644 --- a/BepInEx/ThreadingHelper.cs +++ b/BepInEx/ThreadingHelper.cs @@ -214,7 +214,7 @@ namespace BepInEx public static IEnumerable RunParallel(this IList data, Func work, int workerCount = -1) { if (workerCount < 0) - workerCount = Mathf.Max(2, SystemInfo.processorCount); + workerCount = Mathf.Max(2, Environment.ProcessorCount); else if (workerCount == 0) throw new ArgumentException("Need at least 1 worker", nameof(workerCount));