Skip to content

Commit

Permalink
one import less
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Jan 4, 2024
1 parent 47f01cb commit ad63c61
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -86,7 +85,7 @@ private int getItemSize(ItemStack stack) {
return byteSize;
}

private int getInventorySize(final Inventory inventory) {
private int getInventorySize(Iterable<ItemStack> inventory) {
int collectiveSize = 0;
for (ItemStack stack : inventory) {
collectiveSize += getItemSize(stack);
Expand Down

0 comments on commit ad63c61

Please sign in to comment.