[FIX] Забытое изменение.

This commit is contained in:
Zaxar163 2019-07-03 20:16:14 +03:00
parent f16a781fcf
commit e4bcda5b3b
2 changed files with 1 additions and 7 deletions

View file

@ -3,8 +3,6 @@
import java.io.IOError; import java.io.IOError;
import java.io.IOException; import java.io.IOException;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;
import pro.gravit.launcher.hasher.HashedDir; import pro.gravit.launcher.hasher.HashedDir;
import pro.gravit.launcher.hasher.HashedEntry; import pro.gravit.launcher.hasher.HashedEntry;

View file

@ -3,16 +3,12 @@
import java.io.IOException; import java.io.IOException;
import java.nio.file.Files; import java.nio.file.Files;
import java.nio.file.Path; import java.nio.file.Path;
import java.nio.file.Paths;
import java.time.Duration; import java.time.Duration;
import java.time.Instant; import java.time.Instant;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map.Entry; import java.util.Map.Entry;
import java.util.Objects; import java.util.Objects;
import java.util.StringTokenizer;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;
import pro.gravit.launcher.Launcher; import pro.gravit.launcher.Launcher;
import pro.gravit.launcher.LauncherAPI; import pro.gravit.launcher.LauncherAPI;
@ -215,7 +211,7 @@ public UpdateRequestEvent requestDo(StandartClientWebSocketService service) thro
} catch (IOException ex) { } catch (IOException ex) {
LogHelper.error(ex); LogHelper.error(ex);
} }
if (UpdateData.needsZip((HashedDir)getPathed(name, e.hdir))) { if (UpdateData.needsZipUpdate((HashedDir)getPathed(name, e.hdir), (HashedDir) entry)) {
adds.add(new ListDownloader.DownloadTask(path, -1, true)); adds.add(new ListDownloader.DownloadTask(path, -1, true));
return HashedDir.WalkAction.SKIP_DIR; return HashedDir.WalkAction.SKIP_DIR;
} }