mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] Исправление загрузки модуля если внутри папки с модулем имеется мусор
This commit is contained in:
parent
f0eeeaad10
commit
4d9fb827c3
1 changed files with 2 additions and 1 deletions
|
@ -36,6 +36,7 @@ private ModulesVisitor() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
|
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
|
||||||
|
if (file.toFile().getName().endsWith(".jar"))
|
||||||
loadModule(file);
|
loadModule(file);
|
||||||
return super.visitFile(file, attrs);
|
return super.visitFile(file, attrs);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue