mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-18 11:29:27 +00:00
Fix mod loading
This commit is contained in:
1 parent
dc24e5480e
commit
247a72789e
4 files changed
+20
-13
No files matched your search
+4
-4
@@ -26,10 +26,10 @@ developmentEnvironmentUserName = "Developer"
|
||||
# The string's content will be replaced with your mods version when compiled. You should use this to specify your mod's
|
||||
# version in @Mod([...], version = VERSION, [...])
|
||||
# Leave these properties empty to skip individual token replacements
|
||||
replaceGradleTokenInFile = CodeChickenCorePlugin.java
|
||||
gradleTokenModId =
|
||||
gradleTokenModName =
|
||||
gradleTokenVersion =
|
||||
replaceGradleTokenInFile = CodeChickenCoreModContainer.java
|
||||
gradleTokenModId = GRADLETOKEN_MODID
|
||||
gradleTokenModName = GRADLETOKEN_MODNAME
|
||||
gradleTokenVersion = GRADLETOKEN_VERSION
|
||||
gradleTokenGroupName =
|
||||
|
||||
# In case your mod provides an API for other mods to implement you may declare its package here. Otherwise you can
|
||||
|
||||
@@ -32,7 +32,15 @@ public class CodeChickenCoreModContainer extends DummyModContainer
|
||||
}
|
||||
|
||||
public CodeChickenCoreModContainer() {
|
||||
super(MetadataCollection.from(MetadataCollection.class.getResourceAsStream("/mcmod.info"), "CodeChickenCore").getMetadataForId("CodeChickenCore", null));
|
||||
super(getModMetadata());
|
||||
}
|
||||
|
||||
private static ModMetadata getModMetadata() {
|
||||
final ModMetadata modMetadata = new ModMetadata();
|
||||
modMetadata.name = "GRADLETOKEN_MODNAME";
|
||||
modMetadata.modId = "GRADLETOKEN_MODID";
|
||||
modMetadata.version = "GRADLETOKEN_VERSION";
|
||||
return modMetadata;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -31,7 +31,6 @@ import org.apache.logging.log4j.Logger;
|
||||
public class CodeChickenCorePlugin implements IFMLLoadingPlugin, IFMLCallHook
|
||||
{
|
||||
public static final String mcVersion = "[1.7.10]";
|
||||
public static final String version = "GRADLETOKEN_VERSION";
|
||||
|
||||
public static File minecraftDir;
|
||||
public static String currentMcVersion;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
[
|
||||
{
|
||||
"modid": "${modId}",
|
||||
"name": "${modName}",
|
||||
"description": "Base common code for all chickenbones mods.
|
||||
"modid": "${modId}",
|
||||
"name": "${modName}",
|
||||
"description": "Base common code for all chickenbones mods.
|
||||
|
||||
Supporters: JBoyJr",
|
||||
"version": "${modVersion}",
|
||||
"mcversion": "${minecraftVersion}",
|
||||
"url": "http://www.minecraftforum.net/topic/909223",
|
||||
"authorList": [ "ChickenBones" ]
|
||||
"version": "${modVersion}",
|
||||
"mcversion": "${minecraftVersion}",
|
||||
"url": "http://www.minecraftforum.net/topic/909223",
|
||||
"authorList": [ "ChickenBones" ]
|
||||
}
|
||||
]
|
||||
Reference in new issue
Block a user