diff --git a/src/main/java/com/oroarmor/netherite_plus/mixin/CrossbowItemMixin.java b/src/main/java/com/oroarmor/netherite_plus/mixin/CrossbowItemMixin.java index d73756b..3c9fa61 100644 --- a/src/main/java/com/oroarmor/netherite_plus/mixin/CrossbowItemMixin.java +++ b/src/main/java/com/oroarmor/netherite_plus/mixin/CrossbowItemMixin.java @@ -8,6 +8,7 @@ import org.spongepowered.asm.mixin.injection.callback.LocalCapture; import com.oroarmor.netherite_plus.NetheritePlusConfigManager; +import com.oroarmor.netherite_plus.item.NetheritePlusModItems; import com.oroarmor.util.item.UniqueItemRegistry; import net.minecraft.entity.LivingEntity; @@ -32,6 +33,9 @@ private static void createArrow(World world, LivingEntity entity, ItemStack cros CallbackInfoReturnable cir, ArrowItem arrowItem, PersistentProjectileEntity persistentProjectileEntity) { + if (crossbow.getItem() != NetheritePlusModItems.NETHERITE_CROSSBOW) + return; + persistentProjectileEntity.setDamage(persistentProjectileEntity.getDamage() * NetheritePlusConfigManager.DAMAGE.CROSSBOW_DAMAGE_MULTIPLIER.getDoubleValue() + NetheritePlusConfigManager.DAMAGE.CROSSBOW_DAMAGE_ADDITION.getDoubleValue());