mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
43702a9e10
By: md_5 <git@md-5.net>
27 lines
1.0 KiB
Diff
27 lines
1.0 KiB
Diff
--- a/net/minecraft/world/item/crafting/RecipeItemStack.java
|
|
+++ b/net/minecraft/world/item/crafting/RecipeItemStack.java
|
|
@@ -37,6 +37,7 @@
|
|
public ItemStack[] itemStacks;
|
|
@Nullable
|
|
private IntList stackingIds;
|
|
+ public boolean exact; // CraftBukkit
|
|
|
|
public RecipeItemStack(Stream<? extends RecipeItemStack.Provider> stream) {
|
|
this.values = (RecipeItemStack.Provider[]) stream.toArray((i) -> {
|
|
@@ -74,6 +75,15 @@
|
|
for (int j = 0; j < i; ++j) {
|
|
ItemStack itemstack1 = aitemstack[j];
|
|
|
|
+ // CraftBukkit start
|
|
+ if (exact) {
|
|
+ if (itemstack1.getItem() == itemstack.getItem() && ItemStack.tagMatches(itemstack, itemstack1)) {
|
|
+ return true;
|
|
+ }
|
|
+
|
|
+ continue;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
if (itemstack1.is(itemstack.getItem())) {
|
|
return true;
|
|
}
|