Version file searching should work for directories too

This commit is contained in:
Christian 2012-09-21 17:39:52 -04:00
parent cb2535fa95
commit f73d283341

View file

@ -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());
}
}