Skip to content

Commit

Permalink
Fix JEI bookmarking Mekanism chemicals from AE2 filters (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Sep 2, 2024
1 parent 32cfa94 commit 62744c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public IIngredientType<ChemicalStack> getIngredientType() {
@Override
public @Nullable ChemicalStack getIngredientFromStack(GenericStack genericStack) {
if (genericStack.what() instanceof MekanismKey key) {
return key.withAmount(genericStack.amount());
return key.withAmount(Math.max(1, genericStack.amount()));
}
return null;
}
Expand Down

0 comments on commit 62744c4

Please sign in to comment.