From 517436afc10d84defdd9726de07b7c01841abb98 Mon Sep 17 00:00:00 2001 From: H2Sxxa Date: Sat, 14 Oct 2023 16:07:24 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20the=20attack=20speed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 2 +- .../common/item/ItemMomijisScimitarSword.java | 28 +++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/build.gradle b/build.gradle index 116a662e..2699432d 100644 --- a/build.gradle +++ b/build.gradle @@ -43,7 +43,7 @@ dependencies { deobfProvided "mezz.jei:jei_${mc_version}:${jei_version}:api" runtime "mezz.jei:jei_${mc_version}:${jei_version}" - compile 'maven.modrinth:kekkai:1.2.0' + compile 'maven.modrinth:kekkai:1.2.1' } processResources { diff --git a/src/main/java/arekkuusu/grimoireofalice/common/item/ItemMomijisScimitarSword.java b/src/main/java/arekkuusu/grimoireofalice/common/item/ItemMomijisScimitarSword.java index 85c72738..6be810f3 100644 --- a/src/main/java/arekkuusu/grimoireofalice/common/item/ItemMomijisScimitarSword.java +++ b/src/main/java/arekkuusu/grimoireofalice/common/item/ItemMomijisScimitarSword.java @@ -17,21 +17,21 @@ import net.minecraft.inventory.EntityEquipmentSlot; import net.minecraft.item.ItemStack; -public class ItemMomijisScimitarSword extends ItemBaseSword { +public class ItemMomijisScimitarSword extends ItemBaseSword { - public ItemMomijisScimitarSword(ToolMaterial material) { - super(material, LibName.MOMIJI_SCIMITAR_SWORD); - } + public ItemMomijisScimitarSword(ToolMaterial material) { + super(material, LibName.MOMIJI_SCIMITAR_SWORD); + } - @Override - public Multimap getAttributeModifiers(EntityEquipmentSlot slot, ItemStack stack) { - Multimap modifiers = super.getAttributeModifiers(slot, stack); - MiscHelper.multiplyItemModifier(modifiers, SharedMonsterAttributes.ATTACK_SPEED, ATTACK_SPEED_MODIFIER, 4); - return modifiers; - } + @Override + public Multimap getAttributeModifiers(EntityEquipmentSlot slot, ItemStack stack) { + Multimap modifiers = super.getAttributeModifiers(slot, stack); + MiscHelper.multiplyItemModifier(modifiers, SharedMonsterAttributes.ATTACK_SPEED, ATTACK_SPEED_MODIFIER, -0.7); + return modifiers; + } - @Override - public boolean getIsRepairable(ItemStack toRepair, ItemStack repair) { - return repair.getItem() == Items.IRON_INGOT; - } + @Override + public boolean getIsRepairable(ItemStack toRepair, ItemStack repair) { + return repair.getItem() == Items.IRON_INGOT; + } }