mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-02 05:02:10 -07:00
SPIGOT-7928: ExactChoice acts as MaterialChoice
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
private RecipeItemStack(HolderSet<Item> holderset) {
|
private RecipeItemStack(HolderSet<Item> holderset) {
|
||||||
holderset.unwrap().ifRight((list) -> {
|
holderset.unwrap().ifRight((list) -> {
|
||||||
@@ -72,6 +90,15 @@
|
@@ -72,6 +90,17 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean test(ItemStack itemstack) {
|
public boolean test(ItemStack itemstack) {
|
||||||
@@ -36,12 +36,14 @@
|
|||||||
+ return true;
|
+ return true;
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
|
+
|
||||||
|
+ return false;
|
||||||
+ }
|
+ }
|
||||||
+ // CraftBukkit end
|
+ // CraftBukkit end
|
||||||
List<Holder<Item>> list = this.items();
|
List<Holder<Item>> list = this.items();
|
||||||
|
|
||||||
for (int i = 0; i < list.size(); ++i) {
|
for (int i = 0; i < list.size(); ++i) {
|
||||||
@@ -85,7 +112,7 @@
|
@@ -85,7 +114,7 @@
|
||||||
|
|
||||||
public boolean equals(Object object) {
|
public boolean equals(Object object) {
|
||||||
if (object instanceof RecipeItemStack recipeitemstack) {
|
if (object instanceof RecipeItemStack recipeitemstack) {
|
||||||
|
Reference in New Issue
Block a user