diff options
-rw-r--r-- | src/main/java/moe/nea/libautoupdate/PotentialUpdate.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/moe/nea/libautoupdate/PotentialUpdate.java b/src/main/java/moe/nea/libautoupdate/PotentialUpdate.java index 33d4026..2825c0d 100644 --- a/src/main/java/moe/nea/libautoupdate/PotentialUpdate.java +++ b/src/main/java/moe/nea/libautoupdate/PotentialUpdate.java @@ -107,6 +107,14 @@ public class PotentialUpdate { */ public void executeUpdate() throws IOException { prepareUpdate(); + executePreparedUpdate(); + } + + /** + * Execute an already prepared update. + * Identical to {@link #executeUpdate()} if {@link #prepareUpdate()} was called beforehand. + */ + public void executePreparedUpdate() { ExitHookInvoker.setExitHook( getContext().getIdentifier(), getUpdateUUID(), |