Don't use File to separate the last element of the path. It's a URL, they're always separated by '/'
This commit is contained in:
parent
924425074f
commit
e770c87084
1 changed files with 1 additions and 2 deletions
|
@ -85,8 +85,7 @@ public class RelaunchLibraryManager
|
|||
{
|
||||
boolean download = false;
|
||||
String libName = lib.getLibraries()[i];
|
||||
File tmp = new File(libName);
|
||||
String targFileName = tmp.getName();
|
||||
String targFileName = libName.lastIndexOf('/')>=0 ? libName.substring(libName.lastIndexOf('/')) : libName;
|
||||
String checksum = lib.getHashes()[i];
|
||||
File libFile = new File(libDir, targFileName);
|
||||
if (!libFile.exists())
|
||||
|
|
Loading…
Reference in a new issue