Skip to content

Commit

Permalink
fix context in wrong spot
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Feb 18, 2024
1 parent c5897ad commit 6329c72
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ public static void consumeRecipes(Consumer<FillingRecipe> consumer, IIngredientM
continue;
}

MutableContainerItemContext testCtx = new MutableContainerItemContext(stack);
ContainerItemContext testCtx = ContainerItemContext.withConstant(stack);
Storage<FluidVariant> testStorage = testCtx.find(FluidStorage.ITEM);
if (testStorage == null)
continue;

for (IJeiFluidIngredient ingredient : fluidStacks) {
FluidStack fluidStack = fromJei(ingredient);
ItemStack copy = stack.copy();
ContainerItemContext ctx = ContainerItemContext.withConstant(copy);
MutableContainerItemContext ctx = new MutableContainerItemContext(copy);
Storage<FluidVariant> storage = ctx.find(FluidStorage.ITEM);
if (!GenericItemFilling.isFluidHandlerValid(copy, storage))
continue;
Expand Down

0 comments on commit 6329c72

Please sign in to comment.