mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
regular expressions in java==fail
This commit is contained in:
1 parent
b26bf5ab96
commit
cd2be85575
1 file changed
+5
-1
@@ -417,7 +417,11 @@ public class Loader
|
||||
foundAModClass|=attemptDirLoad(file);
|
||||
continue;
|
||||
}
|
||||
String clazzName = modClass.matcher(file.getName()).group(2);
|
||||
Matcher fname = modClass.matcher(file.getName());
|
||||
if (!fname.find()) {
|
||||
continue;
|
||||
}
|
||||
String clazzName=fname.group(2);
|
||||
log.fine(String.format("Found a mod class %s in directory %s, attempting to load it", clazzName, modDir.getName()));
|
||||
loadModClass(modDir, file.getName(), clazzName);
|
||||
log.fine(String.format("Successfully loaded mod class %s", file.getName()));
|
||||
|
||||
Reference in new issue
Block a user