diff --git a/common/mekanism/client/ThreadClientUpdate.java b/common/mekanism/client/ThreadClientUpdate.java index 32af4a746..61cbe7c2e 100644 --- a/common/mekanism/client/ThreadClientUpdate.java +++ b/common/mekanism/client/ThreadClientUpdate.java @@ -70,7 +70,7 @@ public class ThreadClientUpdate extends Thread outputStream.close(); stream.close(); - if(Mekanism.versionNumber.comparedState(Version.get(Mekanism.latestVersionNumber)) != 0) + if(Mekanism.versionNumber.comparedState(Version.get(Mekanism.latestVersionNumber)) == -1) { ZipInputStream zip = new ZipInputStream(new FileInputStream(download)); deployEntry(zip, "Mekanism-"); @@ -79,7 +79,7 @@ public class ThreadClientUpdate extends Thread for(IModule module : Mekanism.modulesLoaded) { - if(module.getVersion().comparedState(Version.get(Mekanism.latestVersionNumber)) != 0) + if(module.getVersion().comparedState(Version.get(Mekanism.latestVersionNumber)) == -1) { ZipInputStream zip = new ZipInputStream(new FileInputStream(download)); deployEntry(zip, "Mekanism" + module.getName()); diff --git a/common/mekanism/client/gui/GuiCredits.java b/common/mekanism/client/gui/GuiCredits.java index 94ce10113..af7e02558 100644 --- a/common/mekanism/client/gui/GuiCredits.java +++ b/common/mekanism/client/gui/GuiCredits.java @@ -22,7 +22,7 @@ public class GuiCredits extends GuiScreen buttonList.clear(); buttonList.add(new GuiButton(0, width / 2 - 100, height / 4 + 72 + 12, "Update")); buttonList.add(new GuiButton(1, width / 2 - 100, height / 4 + 96 + 12, "Cancel")); - ((GuiButton)buttonList.get(0)).enabled = /*!MekanismUtils.noUpdates() &&*/ !ThreadClientUpdate.hasUpdated; + ((GuiButton)buttonList.get(0)).enabled = !MekanismUtils.noUpdates() && !ThreadClientUpdate.hasUpdated; } public static void updateInfo(String info) @@ -35,7 +35,7 @@ public class GuiCredits extends GuiScreen { if(guibutton.id == 0) { - if(true)//!MekanismUtils.noUpdates()) + if(!MekanismUtils.noUpdates()) { updateProgress = "Preparing to update..."; guibutton.enabled = false;