mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
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:
1 parent
5c96afec70
commit
3b9972af39
1 file changed
+1
-2
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user