mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-31 12:12:08 -07:00
SPIGOT-7891: Can't remove second ingredient of MerchantRecipe
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -120,6 +120,8 @@ public class CraftMerchantRecipe extends MerchantRecipe {
|
||||
if (ingredients.size() > 1) {
|
||||
net.minecraft.world.item.ItemStack costB = CraftItemStack.asNMSCopy(ingredients.get(1));
|
||||
handle.costB = Optional.of(new ItemCost(costB.getItemHolder(), costB.getCount(), DataComponentPredicate.allOf(costB.getComponents()), costB));
|
||||
} else {
|
||||
handle.costB = Optional.empty();
|
||||
}
|
||||
return handle;
|
||||
}
|
||||
|
Reference in New Issue
Block a user