2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/item/crafting/RecipeItemStack.java
|
|
|
|
+++ b/net/minecraft/world/item/crafting/RecipeItemStack.java
|
2022-12-07 17:00:00 +01:00
|
|
|
@@ -38,6 +38,7 @@
|
2021-06-11 07:00:00 +02:00
|
|
|
public ItemStack[] itemStacks;
|
2021-11-21 23:00:00 +01:00
|
|
|
@Nullable
|
2021-06-11 07:00:00 +02:00
|
|
|
private IntList stackingIds;
|
2019-01-02 05:56:21 +01:00
|
|
|
+ public boolean exact; // CraftBukkit
|
2023-09-21 18:40:00 +02:00
|
|
|
public static final Codec<RecipeItemStack> CODEC = codec(true);
|
|
|
|
public static final Codec<RecipeItemStack> CODEC_NONEMPTY = codec(false);
|
2019-01-02 05:56:21 +01:00
|
|
|
|
2023-09-21 18:40:00 +02:00
|
|
|
@@ -75,6 +76,15 @@
|
2022-12-07 17:00:00 +01:00
|
|
|
for (int j = 0; j < i; ++j) {
|
|
|
|
ItemStack itemstack1 = aitemstack[j];
|
2019-01-02 05:56:21 +01:00
|
|
|
|
2022-12-07 17:00:00 +01:00
|
|
|
+ // CraftBukkit start
|
|
|
|
+ if (exact) {
|
2023-06-07 17:30:00 +02:00
|
|
|
+ if (itemstack1.getItem() == itemstack.getItem() && ItemStack.isSameItemSameTags(itemstack, itemstack1)) {
|
2022-12-07 17:00:00 +01:00
|
|
|
+ return true;
|
2020-06-25 02:00:00 +02:00
|
|
|
+ }
|
2022-12-07 17:00:00 +01:00
|
|
|
+
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
if (itemstack1.is(itemstack.getItem())) {
|
|
|
|
return true;
|
|
|
|
}
|