Skip to content

Commit

Permalink
fix: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zepalesque committed Jun 11, 2024
1 parent 1eb73b2 commit 0a6e119
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

0 comments on commit 0a6e119

Please sign in to comment.