From 0a6e1190db2bb0dd2a2043cb171bed1ac85a1cc3 Mon Sep 17 00:00:00 2001 From: Zepalesque <60141811+Zepalesque@users.noreply.github.com> Date: Tue, 11 Jun 2024 19:53:52 -0400 Subject: [PATCH] fix: fixes --- .../net/zepalesque/redux/event/listener/RecipeListener.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/zepalesque/redux/event/listener/RecipeListener.java b/src/main/java/net/zepalesque/redux/event/listener/RecipeListener.java index 5b83e1307..ec0cfe8d0 100644 --- a/src/main/java/net/zepalesque/redux/event/listener/RecipeListener.java +++ b/src/main/java/net/zepalesque/redux/event/listener/RecipeListener.java @@ -14,8 +14,9 @@ public class RecipeListener { @SubscribeEvent public static void onStackItem(ItemStackedOnOtherEvent event) { - if (event.getClickAction() == ClickAction.SECONDARY) { - StackingRecipeHelper.stack(event, stack -> stack.is(AetherItems.AMBROSIUM_SHARD), ReduxRecipes.INFUSION.get()); + if (event.getClickAction() == ClickAction.SECONDARY && + StackingRecipeHelper.stack(event, stack -> stack.is(AetherItems.AMBROSIUM_SHARD), ReduxRecipes.INFUSION.get())) { + event.setCanceled(true); } } }