From 9f8cd7070c574914769e12c9577d87c3696b9643 Mon Sep 17 00:00:00 2001 From: Gravita Date: Fri, 7 May 2021 16:05:56 +0700 Subject: [PATCH] [FIX] Return shuffle in AsyncDownloader --- .../src/main/java/pro/gravit/launcher/AsyncDownloader.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/LauncherCore/src/main/java/pro/gravit/launcher/AsyncDownloader.java b/LauncherCore/src/main/java/pro/gravit/launcher/AsyncDownloader.java index 663c34a4..a34c8955 100644 --- a/LauncherCore/src/main/java/pro/gravit/launcher/AsyncDownloader.java +++ b/LauncherCore/src/main/java/pro/gravit/launcher/AsyncDownloader.java @@ -116,6 +116,9 @@ public List> sortFiles(List files, int threads) { result.get(minIndex).add(file); sizes[minIndex] += file.size; } + for(List list : result) { + Collections.shuffle(list); + } return result; }