diff --git a/src/main/java/com/gmail/nossr50/runnables/backups/CleanBackupsTask.java b/src/main/java/com/gmail/nossr50/runnables/backups/CleanBackupsTask.java index 5ce8d9e87..5011bc23d 100644 --- a/src/main/java/com/gmail/nossr50/runnables/backups/CleanBackupsTask.java +++ b/src/main/java/com/gmail/nossr50/runnables/backups/CleanBackupsTask.java @@ -67,6 +67,10 @@ public class CleanBackupsTask extends BukkitRunnable { toDelete.add(file); } + if (toDelete.isEmpty()) { + return; + } + mcMMO.p.getLogger().info("Cleaning backup files... (" + amountDeleted + "/" + amountTotal + ")"); for (File file : toDelete) {