mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 19:15:32 +00:00
Log if there's a problem reading the class bytes
This commit is contained in:
1 parent
127be2237d
commit
853f54bcc2
1 file changed
+2
-2
@@ -41,7 +41,7 @@ public class RelaunchClassLoader extends URLClassLoader
|
|||||||
private Map<Package,Manifest> packageManifests = new HashMap<Package,Manifest>();
|
private Map<Package,Manifest> packageManifests = new HashMap<Package,Manifest>();
|
||||||
|
|
||||||
private static Manifest EMPTY = new Manifest();
|
private static Manifest EMPTY = new Manifest();
|
||||||
|
|
||||||
private static final String[] RESERVED = {"CON", "PRN", "AUX", "NUL", "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9", "LPT1", "LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", "LPT9"};
|
private static final String[] RESERVED = {"CON", "PRN", "AUX", "NUL", "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9", "LPT1", "LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", "LPT9"};
|
||||||
|
|
||||||
public RelaunchClassLoader(URL[] sources)
|
public RelaunchClassLoader(URL[] sources)
|
||||||
@@ -252,7 +252,7 @@ public class RelaunchClassLoader extends URLClassLoader
|
|||||||
}
|
}
|
||||||
catch (Throwable t)
|
catch (Throwable t)
|
||||||
{
|
{
|
||||||
/// HMMM
|
FMLLog.log(Level.WARNING, t, "Problem loading class");
|
||||||
return new byte[0];
|
return new byte[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user