Skip to content
Success

Changes

Summary

  1. SPIGOT-7907, #1484: Improve merchant recipe item matching behavior to (details)
Commit 11a5e840ca869d125501356025cc849e510c1958 by md_5
SPIGOT-7907, #1484: Improve merchant recipe item matching behavior to more closely align with older versions

Before the update for MC 1.20.5 (item components), merchant recipes
would accept items with additional NBT tags. Since 1.20.5, merchant
recipes created via the Bukkit API no longer accept additional
components.

This changes which component types we pick for merchant recipes created
via the API to more closely match the behavior from before the MC 1.20.5
update, i.e. ignore any empty / default components again.
The file was modifiedsrc/main/java/org/bukkit/craftbukkit/inventory/CraftMerchantRecipe.java