Skip to content

Commit 82dc87c

Browse files
committed
a
1 parent 25fee46 commit 82dc87c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/github/hostadam/utils/ItemBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.github.hostadam.utils;
22

3+
import com.google.common.collect.ImmutableMultimap;
34
import org.bukkit.Color;
45
import org.bukkit.DyeColor;
56
import org.bukkit.Material;
@@ -154,8 +155,7 @@ public ItemBuilder addLore(int pos, String lore) {
154155

155156

156157
public ItemBuilder itemFlag(ItemFlag... flags) {
157-
//this.item.getType().getDefaultAttributeModifiers(EquipmentSlot.HAND);
158-
this.meta.addAttributeModifier(Attribute.GENERIC_ATTACK_DAMAGE, new AttributeModifier("dummy",0, AttributeModifier.Operation.MULTIPLY_SCALAR_1)); // This is necessary as of 1.20.6
158+
this.meta.setAttributeModifiers(ImmutableMultimap.of());
159159
this.meta.addItemFlags(flags);
160160
return this;
161161
}

0 commit comments

Comments
 (0)