mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-16 15:26:27 -04:00
fix: download missing library more than one time
This commit is contained in:
parent
9c1905bb51
commit
c7e3639155
@ -217,9 +217,12 @@ public class Version implements Comparable<Version>, Validation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resolve given version
|
* Resolve given version.
|
||||||
|
* Resolving version will list all patches within this version and its parents,
|
||||||
|
* which is for analysis.
|
||||||
*/
|
*/
|
||||||
public Version resolve(VersionProvider provider) throws VersionNotFoundException {
|
public Version resolve(VersionProvider provider) throws VersionNotFoundException {
|
||||||
|
if (isResolved()) return this;
|
||||||
return resolve(provider, new HashSet<>()).setResolved();
|
return resolve(provider, new HashSet<>()).setResolved();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user