From 3e3b8e7ad26eb1408b3b2d60d43db56323cd88da Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Sun, 3 Aug 2025 17:27:30 +0200 Subject: [PATCH] Fixes some capitalization --- .../handler/BookshelfHandler.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/net/knarcraft/bookswithoutborders/handler/BookshelfHandler.java b/src/main/java/net/knarcraft/bookswithoutborders/handler/BookshelfHandler.java index d1aea42..670f9c4 100644 --- a/src/main/java/net/knarcraft/bookswithoutborders/handler/BookshelfHandler.java +++ b/src/main/java/net/knarcraft/bookswithoutborders/handler/BookshelfHandler.java @@ -27,8 +27,8 @@ import java.util.logging.Level; public class BookshelfHandler { private static final File bookshelfFile = new File(BooksWithoutBorders.getInstance().getDataFolder(), - "bookShelves.yml"); - private Set bookShelves; + "bookshelves.yml"); + private Set bookshelves; private Map locationLookup; /** @@ -48,7 +48,7 @@ public class BookshelfHandler { * @param bookshelf

The bookshelf to register

*/ public void registerBookshelf(@NotNull Bookshelf bookshelf) { - this.bookShelves.add(bookshelf); + this.bookshelves.add(bookshelf); this.locationLookup.put(bookshelf.getLocation(), bookshelf); } @@ -59,14 +59,14 @@ public class BookshelfHandler { */ public void unregisterBookshelf(@NotNull Bookshelf bookshelf) { this.locationLookup.remove(bookshelf.getLocation()); - this.bookShelves.remove(bookshelf); + this.bookshelves.remove(bookshelf); } /** * Loads all stored bookshelves */ public void load() { - this.bookShelves = new HashSet<>(); + this.bookshelves = new HashSet<>(); this.locationLookup = new HashMap<>(); YamlConfiguration configuration = YamlConfiguration.loadConfiguration(bookshelfFile); @@ -113,7 +113,7 @@ public class BookshelfHandler { try { YamlConfiguration configuration = new YamlConfiguration(); ConfigurationSection bookshelfSection = configuration.createSection("bookshelves"); - for (Bookshelf bookshelf : bookShelves) { + for (Bookshelf bookshelf : bookshelves) { saveBookshelf(bookshelfSection, bookshelf); } configuration.save(bookshelfFile);