diff options
Diffstat (limited to 'patch-remap/og/net/minecraft/world/item/crafting/RecipeItemStack.patch')
-rw-r--r-- | patch-remap/og/net/minecraft/world/item/crafting/RecipeItemStack.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/item/crafting/RecipeItemStack.patch b/patch-remap/og/net/minecraft/world/item/crafting/RecipeItemStack.patch new file mode 100644 index 0000000000..45fa2e7694 --- /dev/null +++ b/patch-remap/og/net/minecraft/world/item/crafting/RecipeItemStack.patch @@ -0,0 +1,26 @@ +--- a/net/minecraft/world/item/crafting/RecipeItemStack.java ++++ b/net/minecraft/world/item/crafting/RecipeItemStack.java +@@ -35,6 +35,7 @@ + public ItemStack[] itemStacks; + @Nullable + private IntList stackingIds; ++ public boolean exact; // CraftBukkit + public static final Codec<RecipeItemStack> CODEC = codec(true); + public static final Codec<RecipeItemStack> CODEC_NONEMPTY = codec(false); + +@@ -72,6 +73,15 @@ + for (int j = 0; j < i; ++j) { + ItemStack itemstack1 = aitemstack[j]; + ++ // CraftBukkit start ++ if (exact) { ++ if (itemstack1.getItem() == itemstack.getItem() && ItemStack.isSameItemSameTags(itemstack, itemstack1)) { ++ return true; ++ } ++ ++ continue; ++ } ++ // CraftBukkit end + if (itemstack1.is(itemstack.getItem())) { + return true; + } |