Added mod dependencies

Moved Modname and modid to ModInfo.class
This commit is contained in:
Gig 2015-04-11 17:12:07 +01:00
parent 0223f6ae1d
commit f77e932ef5
2 changed files with 14 additions and 1 deletions

View file

@ -15,13 +15,14 @@ import techreborn.init.ModBlocks;
import techreborn.init.ModItems; import techreborn.init.ModItems;
import techreborn.itemblocks.ItemBlockOre; import techreborn.itemblocks.ItemBlockOre;
import techreborn.items.ItemDusts; import techreborn.items.ItemDusts;
import techreborn.lib.ModInfo;
import techreborn.tiles.TileThermalGenerator; import techreborn.tiles.TileThermalGenerator;
import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkRegistry; import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.GameRegistry;
@Mod(modid = "techreborn", name = "TechReborn", version = "@MODVERSION@") @Mod(modid = ModInfo.MOD_ID, name = ModInfo.MOD_NAME, version = ModInfo.MOD_VERSION, dependencies = ModInfo.MOD_DEPENDENCUIES)
public class Core { public class Core {
@Mod.Instance @Mod.Instance

View file

@ -0,0 +1,12 @@
package techreborn.lib;
public class ModInfo
{
public static final String MOD_NAME = "TechReborn";
public static final String MOD_ID = "techreborn";
public static final String MOD_VERSION = "@MODVERSION@";
public static final String MOD_DEPENDENCUIES = "required-after:IC2@:";
public static final String SERVER_PROXY_CLASS = "TechReborn.proxies.CommonProxy";
public static final String CLIENT_PROXY_CLASS = "TechReborn.proxies.ClientProxy";
public static final String GUI_FACTORY_CLASS = "TechReborn.client.gui.TechRebornGUIFactory";
}