// Path: java/com/asaskevich/smartcursor/mod/ModInfo.java
// public class ModInfo {
// 	public static final String ID = "SmartCursor";
// 	public static final String NAME = ID;
// 	public static final String VERSION = "1.4.5";
// 	public static final String AUTHOR = "Alex Saskevich";
// 	public static final String PROXY_LOCATION = "com.asaskevich.smartcursor.proxy";
// }


import java.io.DataInputStream;
import java.io.InputStream;
import java.net.URL;
import net.minecraft.event.ClickEvent;
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.IChatComponent;
import com.asaskevich.smartcursor.mod.ModInfo;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.PlayerEvent;
package com.asaskevich.smartcursor.utils;


public class UpdateManager {
	public PlayerEvent.PlayerLoggedInEvent	event;

	@SubscribeEvent
	public void onEnterWorld(PlayerEvent.PlayerLoggedInEvent event) {
		this.event = event;
		new Thread() {
			public void run() {
				try {
					String page = makeRequest("https://mods.io/mods/1089-smartcursor");
					int l = page.indexOf("<td><strong>");
					if (l < 0) throw new Exception("");
					int r = page.indexOf("</strong>", l + 10);
					if (r < 0) throw new Exception("");
// Path: java/com/asaskevich/smartcursor/mod/ModInfo.java
// public class ModInfo {
// 	public static final String ID = "SmartCursor";
// 	public static final String NAME = ID;
// 	public static final String VERSION = "1.4.5";
// 	public static final String AUTHOR = "Alex Saskevich";
// 	public static final String PROXY_LOCATION = "com.asaskevich.smartcursor.proxy";
// }


// Path: java/com/asaskevich/smartcursor/utils/UpdateManager.java
import java.io.DataInputStream;
import java.io.InputStream;
import java.net.URL;
import net.minecraft.event.ClickEvent;
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.IChatComponent;
import com.asaskevich.smartcursor.mod.ModInfo;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.PlayerEvent;

package com.asaskevich.smartcursor.utils;


public class UpdateManager {
	public PlayerEvent.PlayerLoggedInEvent	event;

	@SubscribeEvent
	public void onEnterWorld(PlayerEvent.PlayerLoggedInEvent event) {
		this.event = event;
		new Thread() {
			public void run() {
				try {
					String page = makeRequest("https://mods.io/mods/1089-smartcursor");
					int l = page.indexOf("<td><strong>");
					if (l < 0) throw new Exception("");
					int r = page.indexOf("</strong>", l + 10);
					if (r < 0) throw new Exception("");
					String localVersion = ModInfo.VERSION;