Fix updater

This commit is contained in:
Jesse Boyd 2018-05-13 10:54:26 +10:00
parent 0bf6595ddd
commit fc599f2f86
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
1 changed files with 4 additions and 0 deletions

View File

@ -103,6 +103,10 @@ public class Updater {
outFile.renameTo(finalFile);
if (Settings.IMP.UPDATE.equalsIgnoreCase("true")) {
pending = true;
pendingFile = finalFile;
destFile = new File(jarFile.getParent(), "update" + File.separator + jarFile.getName());
installUpdate(null);
Fawe.debug("Updated FAWE to " + versionString + " @ " + pendingFile);
MainUtil.sendAdmin("&a/restart&7 to update FAWE with these changes: &c/fawe changelog &7or&c " + "https://empcraft.com/fawe/cl?" + Integer.toHexString(currentVersion.hash));