Merge pull request #121 from AbrarSyed/master

Fixed dep notation, and null location
This commit is contained in:
Chicken-Bones committed 2014-11-07 17:12:58 +10:00
commit f8fd374cdc
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ public class NEIModContainer extends DummyModContainer
@Override
public Set<ArtifactVersion> getRequirements() {
Set<ArtifactVersion> deps = new HashSet<ArtifactVersion>();
deps.add(VersionParser.parseVersionReference("CodeChickenCore@"+CodeChickenCorePlugin.version+",)"));
deps.add(VersionParser.parseVersionReference("CodeChickenCore@["+CodeChickenCorePlugin.version+",)"));
return deps;
}
@@ -37,6 +37,8 @@ public class NEICorePlugin implements IFMLLoadingPlugin, IFMLCallHook
@Override
public void injectData(Map<String, Object> data) {
location = (File) data.get("coremodLocation");
if (location == null)
location = new File(getClass().getProtectionDomain().getCodeSource().getLocation().getPath());
}
@Override