mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-15 03:14:45 +00:00
move ModInfo.java back into Tags.java to unify with base buildscript logic
This commit is contained in:
4 files changed
+12
-12
No files matched your search
+1
-1
@@ -45,7 +45,7 @@ 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 = ModInfo.java
|
||||
replaceGradleTokenInFile = Tags.java
|
||||
gradleTokenModId = GRADLETOKEN_MODID
|
||||
gradleTokenModName = GRADLETOKEN_MODNAME
|
||||
gradleTokenVersion = GRADLETOKEN_VERSION
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.io.File;
|
||||
import java.util.Map;
|
||||
|
||||
@MCVersion("1.7.10")
|
||||
@Name(ModInfo.MODID)
|
||||
@Name(Tags.MODID)
|
||||
@SortingIndex(500)
|
||||
public class CoreLoadingPlugin implements IFMLLoadingPlugin {
|
||||
public static File mcDir;
|
||||
@@ -21,7 +21,7 @@ public class CoreLoadingPlugin implements IFMLLoadingPlugin {
|
||||
|
||||
@Override
|
||||
public String getModContainerClass() {
|
||||
return ModInfo.GROUPNAME + ".internal.FalsePatternLib";
|
||||
return Tags.GROUPNAME + ".internal.FalsePatternLib";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -17,7 +17,7 @@ import java.util.Arrays;
|
||||
*/
|
||||
public class FalsePatternLib extends DummyModContainer {
|
||||
@Getter
|
||||
private static final Logger log = LogManager.getLogger(ModInfo.MODNAME);
|
||||
private static final Logger log = LogManager.getLogger(Tags.MODNAME);
|
||||
|
||||
@Getter
|
||||
private static final boolean developerEnvironment = (boolean) Launch.blackboard.get("fml.deobfuscatedEnvironment");
|
||||
@@ -26,13 +26,13 @@ public class FalsePatternLib extends DummyModContainer {
|
||||
super(new ModMetadata());
|
||||
log.info("All your libraries are belong to us!");
|
||||
val meta = getMetadata();
|
||||
meta.modId = ModInfo.MODID;
|
||||
meta.name = ModInfo.MODNAME;
|
||||
meta.version = ModInfo.VERSION;
|
||||
meta.url = ModInfo.URL;
|
||||
meta.credits = ModInfo.CREDITS;
|
||||
meta.authorList = Arrays.asList(ModInfo.AUTHORS);
|
||||
meta.description = ModInfo.DESCRIPTION;
|
||||
meta.modId = Tags.MODID;
|
||||
meta.name = Tags.MODNAME;
|
||||
meta.version = Tags.VERSION;
|
||||
meta.url = Tags.URL;
|
||||
meta.credits = Tags.CREDITS;
|
||||
meta.authorList = Arrays.asList(Tags.AUTHORS);
|
||||
meta.description = Tags.DESCRIPTION;
|
||||
meta.useDependencyInformation = true;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package com.falsepattern.lib.internal;
|
||||
|
||||
public class ModInfo {
|
||||
public class Tags {
|
||||
public static final String MODID = "GRADLETOKEN_MODID";
|
||||
public static final String MODNAME = "GRADLETOKEN_MODNAME";
|
||||
public static final String VERSION = "GRADLETOKEN_VERSION";
|
||||
Reference in new issue
Block a user