mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 19:39:22 +00:00
A bit more information for dependency handling
This commit is contained in:
1 parent
6396beaef7
commit
3bde961dc7
1 file changed
+6
-2
@@ -137,14 +137,18 @@ public class FMLModContainer implements ModContainer
|
|||||||
modMetadata.dependants = dependants;
|
modMetadata.dependants = dependants;
|
||||||
FMLLog.finest("Parsed dependency info : %s %s %s", requirements, dependencies, dependants);
|
FMLLog.finest("Parsed dependency info : %s %s %s", requirements, dependencies, dependants);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
FMLLog.finest("Using mcmod dependency info : %s %s %s", modMetadata.requiredMods, modMetadata.dependencies, modMetadata.dependants);
|
||||||
|
}
|
||||||
if (Strings.isNullOrEmpty(modMetadata.name))
|
if (Strings.isNullOrEmpty(modMetadata.name))
|
||||||
{
|
{
|
||||||
FMLLog.info("Mod %s is missing a required element, name. Substituting %s", getModId(), getModId());
|
FMLLog.info("Mod %s is missing the required element 'name'. Substituting %s", getModId(), getModId());
|
||||||
modMetadata.name = getModId();
|
modMetadata.name = getModId();
|
||||||
}
|
}
|
||||||
if (Strings.isNullOrEmpty(modMetadata.version))
|
if (Strings.isNullOrEmpty(modMetadata.version))
|
||||||
{
|
{
|
||||||
FMLLog.warning("Mod %s is missing a required element, version. Substituting 1", getModId());
|
FMLLog.warning("Mod %s is missing the required element 'version'. Substituting 1", getModId());
|
||||||
modMetadata.version = "1";
|
modMetadata.version = "1";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user