Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 13:00:06 +01:00
SPIGOT-5241: setAttributeModifiers does not work on untouched stack
Dieser Commit ist enthalten in:
Ursprung
803eaa3169
Commit
e5e8eec2cf
@ -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();
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren