mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
Fixed issue adding mass enchantments to items
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
636640607d
commit
da2c7fcc14
1 changed files with 2 additions and 2 deletions
|
@ -258,7 +258,7 @@ public class ItemStack implements Serializable, ConfigurationSerializable {
|
|||
* @param enchantments Enchantments to add
|
||||
*/
|
||||
public void addEnchantments(Map<Enchantment, Integer> enchantments) {
|
||||
for (Map.Entry<Enchantment, Integer> entry : getEnchantments().entrySet()) {
|
||||
for (Map.Entry<Enchantment, Integer> entry : enchantments.entrySet()) {
|
||||
addEnchantment(entry.getKey(), entry.getValue());
|
||||
}
|
||||
}
|
||||
|
@ -290,7 +290,7 @@ public class ItemStack implements Serializable, ConfigurationSerializable {
|
|||
* @param enchantments Enchantments to add
|
||||
*/
|
||||
public void addUnsafeEnchantments(Map<Enchantment, Integer> enchantments) {
|
||||
for (Map.Entry<Enchantment, Integer> entry : getEnchantments().entrySet()) {
|
||||
for (Map.Entry<Enchantment, Integer> entry : enchantments.entrySet()) {
|
||||
addUnsafeEnchantment(entry.getKey(), entry.getValue());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue