package squeek.tictooltips;

import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import net.minecraftforge.common.MinecraftForge;
import squeek.tictooltips.helpers.ToolHelper;
import squeek.tictooltips.helpers.ToolPartHelper;
import squeek.tictooltips.proxy.ProxyExtraTiC;
import squeek.tictooltips.proxy.ProxyIguanaTweaks;
import squeek.tictooltips.proxy.ProxyMariculture;
import cpw.mods.fml.common.FMLLog;
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 = ModInfo.MODID, version = ModInfo.VERSION, dependencies = "required-after:TConstruct;after:ExtraTiC;after:TSteelworks;after:Mariculture")
public class ModTiCTooltips
{
	public static boolean hasIguanaTweaks;
	public static final Logger Log = LogManager.getLogger(ModInfo.MODID);

	@SideOnly(Side.CLIENT)
	@EventHandler
	public void init(FMLInitializationEvent event)
	{
		MinecraftForge.EVENT_BUS.register(new TooltipHandler());
	}

	@SideOnly(Side.CLIENT)
	@EventHandler
	public void postInit(FMLPostInitializationEvent event)
	{
		if (Loader.isModLoaded("ExtraTiC"))
		{
			ProxyExtraTiC.init();
		}
		if (Loader.isModLoaded("Mariculture"))
		{
			ProxyMariculture.init();
		}
		if (Loader.isModLoaded("IguanaTweaksTConstruct"))
		{
			hasIguanaTweaks = true;
			ProxyIguanaTweaks.init();
		}

		ToolHelper.init();
		ToolPartHelper.determineMinAndMaxValues();
	}
}

@@ -403,43 +403,8 @@
 re;%0A
-import cpw.mods.fml.common.FMLLog;%0A
 impo
@@ -560,32 +560,83 @@
 alizationEvent;%0A
+import cpw.mods.fml.common.event.FMLInterModComms;%0A
 import cpw.mods.
@@ -1632,14 +1632,183 @@
 alues();
+%0A%0A%09%09FMLInterModComms.sendRuntimeMessage(ModInfo.MODID, %22VersionChecker%22, %22addVersionCheck%22, %22http://www.ryanliptak.com/minecraft/versionchecker/squeek502/TiC-Tooltips%22);
 %0A%09%7D%0A%7D%0A

Add support for the Version Checker mod