mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
Recipe choice lists should be copied once handed over to Bukkit
This commit is contained in:
parent
7ab335f242
commit
60268ac8be
1 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ public interface RecipeChoice extends Predicate<ItemStack>, Cloneable {
|
|||
Preconditions.checkArgument(choice != null, "Cannot have null choice");
|
||||
}
|
||||
|
||||
this.choices = choices;
|
||||
this.choices = new ArrayList<>(choices);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -150,7 +150,7 @@ public interface RecipeChoice extends Predicate<ItemStack>, Cloneable {
|
|||
Preconditions.checkArgument(choice != null, "Cannot have null choice");
|
||||
}
|
||||
|
||||
this.choices = choices;
|
||||
this.choices = new ArrayList<>(choices);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue