mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-13 19:25:49 -07:00
Recipe choice lists should be copied once handed over to Bukkit
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -50,7 +50,7 @@ public interface RecipeChoice extends Predicate<ItemStack>, Cloneable {
|
|||||||
Preconditions.checkArgument(choice != null, "Cannot have null choice");
|
Preconditions.checkArgument(choice != null, "Cannot have null choice");
|
||||||
}
|
}
|
||||||
|
|
||||||
this.choices = choices;
|
this.choices = new ArrayList<>(choices);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -150,7 +150,7 @@ public interface RecipeChoice extends Predicate<ItemStack>, Cloneable {
|
|||||||
Preconditions.checkArgument(choice != null, "Cannot have null choice");
|
Preconditions.checkArgument(choice != null, "Cannot have null choice");
|
||||||
}
|
}
|
||||||
|
|
||||||
this.choices = choices;
|
this.choices = new ArrayList<>(choices);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user