Skip to content

Commit 7558cef

Browse files
committed
Nexo Compatibility: Override Nexo attack speed to prevent duplication
This is a bit of a messy fix in that we're explicitly overriding the value provided by other plugins. Ideally, we should only be overriding our own values instead of all of them universally, but that will require a decent amount of additional work
1 parent 33c77ae commit 7558cef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/studio/magemonkey/divinity/stats/items/ItemStats.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ private static void addAttribute(@NotNull ItemStack item,
396396
AttributeModifier am =
397397
new AttributeModifier(att.getUUID(slot), att.getNmsName(), value, Operation.ADD_NUMBER, slot);
398398

399-
meta.removeAttributeModifier(att.getAttribute(), am); // Avoid dupe and error
399+
meta.removeAttributeModifier(att.getAttribute()); // Avoid dupe and error
400400
meta.addAttributeModifier(att.getAttribute(), am);
401401
}
402402
item.setItemMeta(meta);

0 commit comments

Comments
 (0)