SPIGOT-7928: ExactChoice acts as MaterialChoice

This commit is contained in:
md_5 2024-10-27 07:40:05 +11:00
parent 3eaf3a13c7
commit 6bb0db5cb7
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

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) {