0

Move to Master #8

Merged
Minenash merged 24 commits from gradle into master 2019-02-08 16:31:21 +00:00
Showing only changes of commit 47e0796eff - Show all commits

View File

@ -240,18 +240,20 @@ public final class ModuleLoader implements CoreModule
{ {
try try
{ {
String basePath = "plugins/ModuleLoader/classes/" + module.getClass().getName().replace(".", "/"); InputStream infoFile = null;
InputStream file; if (VersionHelper.isCompatible(VersionHelper.create(5, 0, 0, 5), module.getClass())) {
try { String basePath = "plugins/ModuleLoader/classes/" + module.getClass().getName().replace(".", "/");
file = new FileInputStream(
new File(basePath.substring(0, basePath.lastIndexOf('/')+1) + "module.info"));
}
catch(Exception e) {
file = null;
}
ModuleInfo info = new ModuleInfo(file, module); try {
infoFile = new FileInputStream(
new File(basePath.substring(0, basePath.lastIndexOf('/')+1) + "module.info"));
}
catch(Exception e) {
infoFile = null;
}
}
ModuleInfo info = new ModuleInfo(infoFile, module);
moduleInfos.put(module, info); moduleInfos.put(module, info);