package squeek.tictooltips;

import squeek.tictooltips.helpers.ToolPartHelper;
import squeek.tictooltips.proxy.ProxyExtraTiC;
import net.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

@Mod(modid = ModTiCTooltips.MODID, version = ModTiCTooltips.VERSION, dependencies = "required-after:TConstruct;after:ExtraTiC;after:TSteelworks")
public class ModTiCTooltips {
    public static final String MODID = "TiCTooltips";
    public static final String VERSION = "%VERSION%";

    @SideOnly(Side.CLIENT)
    @EventHandler
    public void init(FMLInitializationEvent event)
    {
    	if (!Loader.isModLoaded("IguanaTweaksTConstruct"))
    	{
    		MinecraftForge.EVENT_BUS.register(new TooltipHandler());
    	}
    }
    
    @SideOnly(Side.CLIENT)
    @EventHandler
    public void postInit(FMLPostInitializationEvent event)
    {
    	if (Loader.isModLoaded("ExtraTiC"))
    	{
    		ProxyExtraTiC.registerParts();
    	}
    	
    	ToolPartHelper.determineMinAndMaxValues();
    }
}

@@ -753,17 +753,11 @@
  = %22
-%25VERSION%25
+1.0
 %22;%0A%0A

Fix version