mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +03:00
Sort в autoload
This commit is contained in:
parent
1e65b0e3a6
commit
87fb00de54
2 changed files with 2 additions and 1 deletions
|
@ -40,7 +40,7 @@ protected PlayerProfile[] requestDo(HInput input, HOutput output) throws IOExcep
|
|||
output.writeLength(usernames.length, SerializeLimits.MAX_BATCH_SIZE);
|
||||
for (String username : usernames) {
|
||||
output.writeString(username, SerializeLimits.MAX_LOGIN);
|
||||
output.writeString("", SerializeLimits.MAX_CLIENT); //TODO: Что это за запрос и для чего он нужен?
|
||||
output.writeString("", SerializeLimits.MAX_CLIENT);
|
||||
}
|
||||
output.flush();
|
||||
|
||||
|
|
|
@ -44,6 +44,7 @@ public void autoload(Path dir) throws IOException {
|
|||
LogHelper.info("Load modules");
|
||||
if (Files.notExists(dir)) Files.createDirectory(dir);
|
||||
IOHelper.walk(dir, new ModulesVisitor(), true);
|
||||
sort();
|
||||
LogHelper.info("Loaded %d modules", modules.size());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue