From f73d28334115c2ef885485ece1cce4eabec3b68f Mon Sep 17 00:00:00 2001 From: Christian Date: Fri, 21 Sep 2012 17:39:52 -0400 Subject: [PATCH] Version file searching should work for directories too --- fml/common/cpw/mods/fml/common/FMLModContainer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fml/common/cpw/mods/fml/common/FMLModContainer.java b/fml/common/cpw/mods/fml/common/FMLModContainer.java index df97880aa..2971942fb 100644 --- a/fml/common/cpw/mods/fml/common/FMLModContainer.java +++ b/fml/common/cpw/mods/fml/common/FMLModContainer.java @@ -155,13 +155,13 @@ public class FMLModContainer implements ModContainer modMetadata.name = getModId(); } internalVersion = (String) descriptor.get("version"); - if (Strings.isNullOrEmpty(internalVersion) && getSource().isFile()) + if (Strings.isNullOrEmpty(internalVersion)) { Properties versionProps = searchForVersionProperties(); if (versionProps != null) { internalVersion = versionProps.getProperty(getModId()+".version"); - FMLLog.fine("Found version %s for mod %s in version.properties", internalVersion, getModId()); + FMLLog.fine("Found version %s for mod %s in version.properties, using", internalVersion, getModId()); } }