From 906aa08ebf71324163da8a755938da113eeb96fb Mon Sep 17 00:00:00 2001 From: Mrbysco Date: Sun, 27 Oct 2024 23:15:44 +0100 Subject: [PATCH] Fix All in One Tool stats (Closes #1424) --- .../ellpeck/actuallyadditions/mod/items/AllInOneTool.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/items/AllInOneTool.java b/src/main/java/de/ellpeck/actuallyadditions/mod/items/AllInOneTool.java index 830bf891a..64fb291d2 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/items/AllInOneTool.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/items/AllInOneTool.java @@ -36,13 +36,13 @@ public class AllInOneTool extends DiggerItem { new Properties() .durability(tier.getUses() * 4) .component(DataComponents.TOOL, tier.createToolProperties(ActuallyTags.Blocks.MINEABLE_WITH_AIO)) - .attributes(createAttributes()) + .attributes(createAttributes(tier)) ); } - private static ItemAttributeModifiers createAttributes() { + private static ItemAttributeModifiers createAttributes(Tier tier) { ItemAttributeModifiers.Builder builder = ItemAttributeModifiers.builder(); - builder.add(Attributes.ATTACK_DAMAGE, new AttributeModifier(BASE_ATTACK_DAMAGE_ID,4.0f, AttributeModifier.Operation.ADD_VALUE), EquipmentSlotGroup.MAINHAND); + builder.add(Attributes.ATTACK_DAMAGE, new AttributeModifier(BASE_ATTACK_DAMAGE_ID,4.0f + tier.getAttackDamageBonus(), AttributeModifier.Operation.ADD_VALUE), EquipmentSlotGroup.MAINHAND); builder.add(Attributes.ATTACK_SPEED, new AttributeModifier(BASE_ATTACK_SPEED_ID, -2.0f, AttributeModifier.Operation.ADD_VALUE), EquipmentSlotGroup.MAINHAND); return builder.build(); }