mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-06-21 17:57:50 +02:00
Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly Paper Changes: PaperMC/Paper@174eab01 Update Improve exact choice recipe ingredients (#13788)
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
@@ -35,6 +_,7 @@
|
||||
public final HolderSet<Item> values;
|
||||
// CraftBukkit start
|
||||
private java.util.@org.jspecify.annotations.Nullable List<ItemStack> itemStacks;
|
||||
private java.util.@org.jspecify.annotations.Nullable Set<ItemStack> itemStacks; // Paper - Improve exact choice recipe ingredients
|
||||
+ public Predicate<org.bukkit.inventory.ItemStack> predicate; // Purpur - Add predicate to recipe's ExactChoice ingredient
|
||||
|
||||
public boolean isExact() {
|
||||
return this.itemStacks != null;
|
||||
@@ -88,6 +_,11 @@
|
||||
return false;
|
||||
@@ -86,6 +_,11 @@
|
||||
return this.itemStacks.contains(input); // Paper - Improve exact choice recipe ingredients (hashing FTW!)
|
||||
}
|
||||
// CraftBukkit end
|
||||
+ // Purpur start - Add predicate to recipe's ExactChoice ingredient
|
||||
|
||||
Reference in New Issue
Block a user