From ad63c61c60cc4317910c267c0874a8e217ffe9a8 Mon Sep 17 00:00:00 2001 From: xGinko Date: Thu, 4 Jan 2024 18:27:26 +0100 Subject: [PATCH] one import less --- .../me/moomoo/anarchyexploitfixes/modules/patches/BookBan.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/patches/BookBan.java b/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/patches/BookBan.java index 561c70181..76e7172c8 100755 --- a/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/patches/BookBan.java +++ b/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/patches/BookBan.java @@ -14,7 +14,6 @@ import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.player.*; -import org.bukkit.inventory.Inventory; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.BlockStateMeta; import org.bukkit.inventory.meta.BookMeta; @@ -86,7 +85,7 @@ private int getItemSize(ItemStack stack) { return byteSize; } - private int getInventorySize(final Inventory inventory) { + private int getInventorySize(Iterable inventory) { int collectiveSize = 0; for (ItemStack stack : inventory) { collectiveSize += getItemSize(stack);