Skip to content

Commit

Permalink
Fix list-based aspects only moving one ingredient at a time
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed May 4, 2024
1 parent 5588b2f commit bcb0b26
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public IngredientPredicateBlockList(boolean blacklist, int amount, boolean exact
super(IngredientComponent.ITEMSTACK,
Iterables.transform(
Iterables.filter(blocks, block -> block.getRawValue().isPresent()),
block -> BlockHelpers.getItemStackFromBlockState(block.getRawValue().get())),
block -> TunnelItemHelpers.prototypeWithCount(BlockHelpers.getItemStackFromBlockState(block.getRawValue().get()), amount)),
matchFlags, blacklist, false, amount, exactAmount);
this.blacklist = blacklist;
this.blocks = blocks;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class IngredientPredicateFluidStackList extends IngredientPredicate<Fluid
private final boolean checkNbt;

public IngredientPredicateFluidStackList(boolean blacklist, int amount, boolean exactAmount, IValueTypeListProxy<ValueObjectTypeFluidStack, ValueObjectTypeFluidStack.ValueFluidStack> fluidStacks, int matchFlags, boolean checkFluid, boolean checkAmount, boolean checkNbt) {
super(IngredientComponent.FLUIDSTACK, Iterables.transform(fluidStacks, ValueObjectTypeFluidStack.ValueFluidStack::getRawValue), matchFlags, blacklist, false, amount, exactAmount);
super(IngredientComponent.FLUIDSTACK, Iterables.transform(fluidStacks, stack -> TunnelFluidHelpers.prototypeWithCount(stack.getRawValue(), amount)), matchFlags, blacklist, false, amount, exactAmount);
this.blacklist = blacklist;
this.fluidStacks = fluidStacks;
this.checkFluid = checkFluid;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class IngredientPredicateItemStackList extends IngredientPredicate<ItemSt
private final boolean checkNbt;

public IngredientPredicateItemStackList(boolean blacklist, int amount, boolean exactAmount, IValueTypeListProxy<ValueObjectTypeItemStack, ValueObjectTypeItemStack.ValueItemStack> itemStacks, int matchFlags, boolean checkStackSize, boolean checkItem, boolean checkNbt) {
super(IngredientComponent.ITEMSTACK, Iterables.transform(itemStacks, ValueObjectTypeItemStack.ValueItemStack::getRawValue), matchFlags, blacklist, false, amount, exactAmount);
super(IngredientComponent.ITEMSTACK, Iterables.transform(itemStacks, stack -> TunnelItemHelpers.prototypeWithCount(stack.getRawValue(), amount)), matchFlags, blacklist, false, amount, exactAmount);
this.blacklist = blacklist;
this.itemStacks = itemStacks;
this.checkStackSize = checkStackSize;
Expand Down

0 comments on commit bcb0b26

Please sign in to comment.