Skip to content

Commit

Permalink
Fixed stupid oversight and the 404 when version checking
Browse files Browse the repository at this point in the history
  • Loading branch information
dries007 committed Aug 19, 2014
1 parent 7fe483d commit b975515
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/net/doubledoordev/d3core/D3Core.java
Expand Up @@ -109,7 +109,8 @@ public void init(FMLInitializationEvent event)

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

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

Expand Down Expand Up @@ -157,7 +158,7 @@ public void postInit(FMLPostInitializationEvent event)
@SubscribeEvent
public void nameFormatEvent(PlayerEvent.PlayerLoggedInEvent event)
{
if (!updateWarning) return;
if (!updateWarning || updateDateList.isEmpty()) return;

event.player.addChatComponentMessage(IChatComponent.Serializer.func_150699_a("{\"text\":\"\",\"extra\":[{\"text\":\"Updates available for these mods:\",\"color\":\"gold\"}]}"));
for (CoreHelper.ModUpdateDate updateDate : updateDateList)
Expand Down

0 comments on commit b975515

Please sign in to comment.