Remove `firstFireworks` from `InventoryBehavior`

This commit is contained in:
Brady 2023-06-23 16:17:59 -07:00
parent 878a32228a
commit c10903be69
No known key found for this signature in database
GPG Key ID: 73A788379A197567
1 changed files with 0 additions and 14 deletions

View File

@ -152,20 +152,6 @@ public final class InventoryBehavior extends Behavior implements Helper {
return bestInd;
}
private int firstFireworks() {
final NonNullList<ItemStack> invy = ctx.player().inventory.mainInventory;
for (int i = 0; i < invy.size(); i++) {
final ItemStack itemStack = invy.get(i);
final NBTTagCompound subCompound = itemStack.getSubCompound("Fireworks");
if (itemStack.getItem() == Items.FIREWORKS
&& subCompound != null
&& subCompound.hasKey("Flight")) {
return i;
}
}
return -1;
}
public boolean hasGenericThrowaway() {
for (Item item : Baritone.settings().acceptableThrowawayItems.value) {
if (throwaway(false, stack -> item.equals(stack.getItem()))) {