From db04b6b2fa10aab3e88504a5df1078c1ba1636d5 Mon Sep 17 00:00:00 2001 From: Vasco Lavos Date: Sun, 1 Jun 2014 00:41:32 +0100 Subject: [PATCH] And that should finish it. --- .../vazkii/botania/common/core/version/ThreadDownloadMod.java | 3 --- MODSRC/vazkii/botania/common/core/version/VersionChecker.java | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/MODSRC/vazkii/botania/common/core/version/ThreadDownloadMod.java b/MODSRC/vazkii/botania/common/core/version/ThreadDownloadMod.java index abe544e8b..a60ef89af 100644 --- a/MODSRC/vazkii/botania/common/core/version/ThreadDownloadMod.java +++ b/MODSRC/vazkii/botania/common/core/version/ThreadDownloadMod.java @@ -24,9 +24,6 @@ import net.minecraft.util.EnumChatFormatting; import vazkii.botania.common.Botania; import cpw.mods.fml.common.FMLCommonHandler; -/** - * @author Vazkii, TheWhiteWolves - */ public class ThreadDownloadMod extends Thread { String fileName; diff --git a/MODSRC/vazkii/botania/common/core/version/VersionChecker.java b/MODSRC/vazkii/botania/common/core/version/VersionChecker.java index f47d7475e..640f09eb6 100644 --- a/MODSRC/vazkii/botania/common/core/version/VersionChecker.java +++ b/MODSRC/vazkii/botania/common/core/version/VersionChecker.java @@ -18,6 +18,7 @@ import net.minecraft.util.ChatStyle; import net.minecraft.util.EnumChatFormatting; import net.minecraft.util.IChatComponent; import net.minecraft.util.StatCollector; +import vazkii.botania.common.lib.LibMisc; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.gameevent.TickEvent.ClientTickEvent; @@ -43,7 +44,7 @@ public final class VersionChecker { if(!onlineVersion.isEmpty()) { EntityPlayer player = Minecraft.getMinecraft().thePlayer; int onlineBuild = Integer.parseInt(onlineVersion.split("-")[1]); - int clientBuild = 39;//LibMisc.BUILD.contains("ANT") ? Integer.MAX_VALUE : Integer.parseInt(LibMisc.BUILD); TODO + int clientBuild = LibMisc.BUILD.contains("ANT") ? Integer.MAX_VALUE : Integer.parseInt(LibMisc.BUILD); if(onlineBuild > clientBuild) { player.addChatComponentMessage(new ChatComponentTranslation("botania.versioning.flavour" + player.worldObj.rand.nextInt(16)).setChatStyle(new ChatStyle().setColor(EnumChatFormatting.LIGHT_PURPLE))); player.addChatComponentMessage(new ChatComponentTranslation("botania.versioning.outdated", clientBuild, onlineBuild));