Skip to content

Commit c4b7f93

Browse files
authored
Fix #1094: Fluid tag inputs only accepted the first fluid in the tag (#1096)
1 parent 412601b commit c4b7f93

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/aztech/modern_industrialization/machines/components/CrafterComponent.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,9 @@ protected boolean takeFluidInputs(MachineRecipe recipe, boolean simulate) {
494494
private boolean fluidIngredientMatch(FluidVariant resource, FluidIngredient ingredient) {
495495
if (ingredient.isSimple()) {
496496
for (var stack : ingredient.getStacks()) {
497-
return resource.equals(FluidVariant.of(stack.getFluid()));
497+
if (resource.equals(FluidVariant.of(stack.getFluid()))) {
498+
return true;
499+
}
498500
}
499501
return false;
500502
} else {

0 commit comments

Comments
 (0)