Fix a few debug codes

This commit is contained in:
Aidan C. Brady 2014-01-11 22:24:15 -05:00
parent d3f4934daa
commit 16219e501e
2 changed files with 4 additions and 4 deletions

View file

@ -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());

View file

@ -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;