Skip to content

Commit

Permalink
/me is too hacky sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
dries007 committed Aug 20, 2014
1 parent b975515 commit 524cb2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/main/java/net/doubledoordev/d3core/D3Core.java
Expand Up @@ -109,9 +109,8 @@ public void init(FMLInitializationEvent event)

TreeSet<ArtifactVersion> availableVersions = new TreeSet<>();

// |<---------------------------------- Camel case hackery ---------------------------------->|
String group = GROUP + modContainer.getModId().substring(0, 1).toLowerCase() + modContainer.getModId().substring(1);
String artifactId = modContainer.getModId();
String group = modContainer.getMod().getClass().getPackage().getName();
String artifactId = modContainer.getName();
if (debug()) logger.info(String.format("[%s] Group: %s ArtifactId: %s", modContainer.getModId(), group, artifactId));

URL url = new URL(MAVENURL + group.replace('.', '/') + '/' + artifactId + "/maven-metadata.xml");
Expand Down
Expand Up @@ -42,7 +42,6 @@ public class CoreConstants
public static final String BASEURL = "http://doubledoordev.net/";
public static final String PERKSURL = BASEURL + "perks.json";
public static final String MAVENURL = BASEURL + "maven/";
public static final String GROUP = "net.doubledoordev.";
/**
* @see net.doubledoordev.d3core.client.ModConfigGuiFactory
*/
Expand Down

0 comments on commit 524cb2c

Please sign in to comment.