mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
More Gui work
This commit is contained in:
1 parent
bc024b851f
commit
d4ceb4064d
5 files changed
+17
-79
No files matched your search
@@ -10,7 +10,7 @@ import java.util.zip.ZipEntry;
|
||||
import java.util.zip.ZipInputStream;
|
||||
|
||||
import mekanism.api.EnumColor;
|
||||
//import mekanism.client.gui.GuiCredits;
|
||||
import mekanism.client.gui.GuiCredits;
|
||||
import mekanism.common.Mekanism;
|
||||
import mekanism.common.Version;
|
||||
import mekanism.common.base.IModule;
|
||||
@@ -54,7 +54,7 @@ public class ThreadClientUpdate extends Thread
|
||||
prepareForDownload();
|
||||
download.createNewFile();
|
||||
|
||||
//TODO GuiCredits.updateInfo("Downloading...");
|
||||
GuiCredits.updateInfo("Downloading...");
|
||||
|
||||
FileOutputStream outputStream = new FileOutputStream(download.getAbsolutePath());
|
||||
InputStream stream = zipUrl.openStream();
|
||||
@@ -89,12 +89,12 @@ public class ThreadClientUpdate extends Thread
|
||||
deleteTemp();
|
||||
|
||||
hasUpdated = true;
|
||||
//TODO GuiCredits.updateInfo("Update installed, reboot Minecraft for changes.");
|
||||
GuiCredits.updateInfo("Update installed, reboot Minecraft for changes.");
|
||||
Mekanism.logger.info("Successfully updated to latest version (" + Mekanism.latestVersionNumber + ").");
|
||||
|
||||
finalize();
|
||||
} catch(Throwable t) {
|
||||
//TODO GuiCredits.updateInfo(EnumColor.DARK_RED + "Error updating.");
|
||||
GuiCredits.updateInfo(EnumColor.DARK_RED + "Error updating.");
|
||||
hasUpdated = true;
|
||||
Mekanism.logger.error("Error while finishing update thread: " + t.getMessage());
|
||||
t.printStackTrace();
|
||||
|
||||
Reference in new issue
Block a user