geforkt von Mirrors/Paper
Fixed issue adding mass enchantments to items
By: Nathan Adams <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
Ursprung
636640607d
Commit
da2c7fcc14
@ -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());
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren