mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-15 14:56:05 -04:00
fix: unable to launch vivecraft
This commit is contained in:
parent
20d5957331
commit
30499aa623
@ -94,7 +94,7 @@ public class DefaultGameRepository implements GameRepository {
|
||||
|
||||
@Override
|
||||
public File getLibraryFile(Version version, Library lib) {
|
||||
if ("local".equals(lib.getHint()))
|
||||
if ("local".equals(lib.getHint()) && lib.getFileName() != null)
|
||||
return new File(getVersionRoot(version.getId()), "libraries/" + lib.getFileName());
|
||||
else
|
||||
return new File(getBaseDirectory(), "libraries/" + lib.getPath());
|
||||
|
Loading…
x
Reference in New Issue
Block a user