2021-03-16 09:00:00 +11:00
|
|
|
--- a/net/minecraft/world/item/crafting/RecipeItemStack.java
|
|
|
|
+++ b/net/minecraft/world/item/crafting/RecipeItemStack.java
|
2021-11-22 09:00:00 +11:00
|
|
|
@@ -37,6 +37,7 @@
|
2021-06-11 15:00:00 +10:00
|
|
|
public ItemStack[] itemStacks;
|
2021-11-22 09:00:00 +11:00
|
|
|
@Nullable
|
2021-06-11 15:00:00 +10:00
|
|
|
private IntList stackingIds;
|
2019-01-02 15:56:21 +11:00
|
|
|
+ public boolean exact; // CraftBukkit
|
|
|
|
|
|
|
|
public RecipeItemStack(Stream<? extends RecipeItemStack.Provider> stream) {
|
2021-06-11 15:00:00 +10:00
|
|
|
this.values = (RecipeItemStack.Provider[]) stream.toArray((i) -> {
|
2021-11-22 09:00:00 +11:00
|
|
|
@@ -74,6 +75,15 @@
|
2020-06-25 10:00:00 +10:00
|
|
|
for (int j = 0; j < i; ++j) {
|
|
|
|
ItemStack itemstack1 = aitemstack[j];
|
2019-01-02 15:56:21 +11:00
|
|
|
|
2020-06-25 10:00:00 +10:00
|
|
|
+ // CraftBukkit start
|
|
|
|
+ if (exact) {
|
2021-11-22 09:00:00 +11:00
|
|
|
+ if (itemstack1.getItem() == itemstack.getItem() && ItemStack.tagMatches(itemstack, itemstack1)) {
|
2020-06-25 10:00:00 +10:00
|
|
|
+ return true;
|
|
|
|
+ }
|
2019-01-02 15:56:21 +11:00
|
|
|
+
|
2020-06-25 10:00:00 +10:00
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
2021-11-22 09:00:00 +11:00
|
|
|
if (itemstack1.is(itemstack.getItem())) {
|
2020-06-25 10:00:00 +10:00
|
|
|
return true;
|
|
|
|
}
|