Skip to content

Commit

Permalink
fix: Removed redundant function for item check
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoinkwiz committed Jan 20, 2025
1 parent 48b319f commit 2a5c04f
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -599,13 +599,6 @@ protected ArrayList<LineComponent> getAdditionalText(Client client, boolean incl

@Override
public boolean check(Client client)
{
ItemAndLastUpdated[] containers = containersToCheckDefault();

return checkContainers(client, containers);
}

private ItemAndLastUpdated[] containersToCheckDefault()
{
List<ItemAndLastUpdated> containers = new ArrayList<>();
containers.add(QuestContainerManager.getEquippedData());
Expand All @@ -617,7 +610,7 @@ private ItemAndLastUpdated[] containersToCheckDefault()
containers.add(QuestContainerManager.getPotionData());
}

return containers.toArray(new ItemAndLastUpdated[0]);
return checkContainers(client, containers.toArray(new ItemAndLastUpdated[0]));
}

private int getMaxMatchingItems(Client client, @NonNull Item[] items)
Expand Down

0 comments on commit 2a5c04f

Please sign in to comment.