From f4bcaf613d977a089d16bc8eb19a6dfd77c181a5 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Wed, 10 Sep 2025 00:48:15 +0200 Subject: [PATCH] Changes check for if a book is encrypted during migration --- .../bookswithoutborders/thread/MigrationQueueThread.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/net/knarcraft/bookswithoutborders/thread/MigrationQueueThread.java b/src/main/java/net/knarcraft/bookswithoutborders/thread/MigrationQueueThread.java index 11d5e4e..32d9a74 100644 --- a/src/main/java/net/knarcraft/bookswithoutborders/thread/MigrationQueueThread.java +++ b/src/main/java/net/knarcraft/bookswithoutborders/thread/MigrationQueueThread.java @@ -93,7 +93,6 @@ public class MigrationQueueThread implements Runnable { if (bookMeta == null) { return false; } - String slash = BooksWithoutBorders.getConfiguration().getSlash(); EncryptedBook encryptedBook = null; BookMeta loadedBook = null; @@ -106,7 +105,7 @@ public class MigrationQueueThread implements Runnable { } // Attempt loading an encrypted book if necessary - if (file.getAbsolutePath().contains("Books" + slash + "Encrypted")) { + if (file.getAbsolutePath().contains(new File(BooksWithoutBorders.getConfiguration().getEncryptedBookPath()).getAbsolutePath())) { encryptedBook = BookFileReaderWriterUtil.encryptedBookFromYml(file, bookMeta, "", true, true); if (encryptedBook != null) { loadedBook = encryptedBook.bookMeta();