mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 02:55:17 +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;
|
boolean download = false;
|
||||||
String libName = lib.getLibraries()[i];
|
String libName = lib.getLibraries()[i];
|
||||||
File tmp = new File(libName);
|
String targFileName = libName.lastIndexOf('/')>=0 ? libName.substring(libName.lastIndexOf('/')) : libName;
|
||||||
String targFileName = tmp.getName();
|
|
||||||
String checksum = lib.getHashes()[i];
|
String checksum = lib.getHashes()[i];
|
||||||
File libFile = new File(libDir, targFileName);
|
File libFile = new File(libDir, targFileName);
|
||||||
if (!libFile.exists())
|
if (!libFile.exists())
|
||||||
|
|||||||
Reference in new issue
Block a user