fix: unable to launch vivecraft

This commit is contained in:
huanghongxun 2020-01-14 01:20:59 +08:00
parent 20d5957331
commit 30499aa623

View File

@ -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());