mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-11 01:12:47 +01:00
SPIGOT-5241: setAttributeModifiers does not work on untouched stack
This commit is contained in:
parent
803eaa3169
commit
e5e8eec2cf
1 changed files with 4 additions and 1 deletions
|
@ -999,8 +999,11 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable, BlockDataMeta {
|
||||||
this.attributeModifiers = HashMultimap.create();
|
this.attributeModifiers = HashMultimap.create();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Iterator<Map.Entry<Attribute, AttributeModifier>> iterator = attributeModifiers.entries().iterator();
|
|
||||||
|
checkAttributeList();
|
||||||
this.attributeModifiers.clear();
|
this.attributeModifiers.clear();
|
||||||
|
|
||||||
|
Iterator<Map.Entry<Attribute, AttributeModifier>> iterator = attributeModifiers.entries().iterator();
|
||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
Map.Entry<Attribute, AttributeModifier> next = iterator.next();
|
Map.Entry<Attribute, AttributeModifier> next = iterator.next();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue