diff --git a/src/main/java/net/szum123321/textile_backup/commands/restore/KillRestoreCommand.java b/src/main/java/net/szum123321/textile_backup/commands/restore/KillRestoreCommand.java index 8ea451a..12081a3 100644 --- a/src/main/java/net/szum123321/textile_backup/commands/restore/KillRestoreCommand.java +++ b/src/main/java/net/szum123321/textile_backup/commands/restore/KillRestoreCommand.java @@ -29,6 +29,7 @@ public class KillRestoreCommand { .executes(ctx -> { if(Statics.restoreAwaitThread != null && Statics.restoreAwaitThread.isAlive()) { Statics.restoreAwaitThread.interrupt(); + Statics.globalShutdownBackupFlag.set(true); Statics.LOGGER.sendInfo(ctx.getSource(), "Backup restoration successfully stopped"); Statics.LOGGER.info("{} cancelled backup restoration.", ctx.getSource().getEntity() != null ? "Player: " + ctx.getSource().getName() :