From fc599f2f86848d3e5f33d82f9a72507b24e0b9a1 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sun, 13 May 2018 10:54:26 +1000 Subject: [PATCH] Fix updater --- core/src/main/java/com/boydti/fawe/util/Updater.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/java/com/boydti/fawe/util/Updater.java b/core/src/main/java/com/boydti/fawe/util/Updater.java index fd0af03e..171fb4a9 100644 --- a/core/src/main/java/com/boydti/fawe/util/Updater.java +++ b/core/src/main/java/com/boydti/fawe/util/Updater.java @@ -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));