SPIGOT-7928: ExactChoice acts as MaterialChoice

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2024-10-27 07:40:05 +11:00
parent a15be74be3
commit 228b3effa4

View File

@ -25,7 +25,7 @@
private RecipeItemStack(HolderSet<Item> holderset) {
holderset.unwrap().ifRight((list) -> {
@@ -72,6 +90,15 @@
@@ -72,6 +90,17 @@
}
public boolean test(ItemStack itemstack) {
@ -36,12 +36,14 @@
+ return true;
+ }
+ }
+
+ return false;
+ }
+ // CraftBukkit end
List<Holder<Item>> list = this.items();
for (int i = 0; i < list.size(); ++i) {
@@ -85,7 +112,7 @@
@@ -85,7 +114,7 @@
public boolean equals(Object object) {
if (object instanceof RecipeItemStack recipeitemstack) {