mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
fix PotionEffectType#getEffectAttributes
This commit is contained in:
parent
a0c2ebbdd4
commit
9c0da4515d
@ -22,7 +22,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ final java.util.Map<org.bukkit.attribute.Attribute, org.bukkit.attribute.AttributeModifier> attributeMap = new java.util.HashMap<>();
|
+ final java.util.Map<org.bukkit.attribute.Attribute, org.bukkit.attribute.AttributeModifier> attributeMap = new java.util.HashMap<>();
|
||||||
+ this.handle.attributeModifiers.forEach((attribute, attributeModifier) -> {
|
+ this.handle.attributeModifiers.forEach((attribute, attributeModifier) -> {
|
||||||
+ attributeMap.put(
|
+ attributeMap.put(
|
||||||
+ org.bukkit.craftbukkit.attribute.CraftAttribute.stringToBukkit(attribute.toString()),
|
+ org.bukkit.craftbukkit.attribute.CraftAttribute.minecraftHolderToBukkit(attribute),
|
||||||
+ // use zero as amplifier to get the base amount, as it is amount = base * (amplifier + 1)
|
+ // use zero as amplifier to get the base amount, as it is amount = base * (amplifier + 1)
|
||||||
+ org.bukkit.craftbukkit.attribute.CraftAttributeInstance.convert(attributeModifier.create(this.handle.getDescriptionId(), 0))
|
+ org.bukkit.craftbukkit.attribute.CraftAttributeInstance.convert(attributeModifier.create(this.handle.getDescriptionId(), 0))
|
||||||
+ );
|
+ );
|
||||||
|
Loading…
Reference in New Issue
Block a user