mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-22 05:02:11 +00:00
Merge pull request #121 from AbrarSyed/master
Fixed dep notation, and null location
This commit is contained in:
commit
f8fd374cdc
2 files changed
+3
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user