Version file searching should work for directories too
This commit is contained in:
parent
cb2535fa95
commit
f73d283341
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue