From 62744c454d85f74cb1cb006df2b9832102f5a167 Mon Sep 17 00:00:00 2001 From: James Mitchell Date: Sun, 1 Sep 2024 22:13:26 -1000 Subject: [PATCH] Fix JEI bookmarking Mekanism chemicals from AE2 filters (#72) --- .../mekae2/integration/jei/ChemicalIngredientConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/ramidzkh/mekae2/integration/jei/ChemicalIngredientConverter.java b/src/main/java/me/ramidzkh/mekae2/integration/jei/ChemicalIngredientConverter.java index 8885140..12bf416 100644 --- a/src/main/java/me/ramidzkh/mekae2/integration/jei/ChemicalIngredientConverter.java +++ b/src/main/java/me/ramidzkh/mekae2/integration/jei/ChemicalIngredientConverter.java @@ -29,7 +29,7 @@ public IIngredientType 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; }