Skip to content

Commit

Permalink
Ok crossbow damage should work
Browse files Browse the repository at this point in the history
  • Loading branch information
OroArmor committed Jul 29, 2020
1 parent 9a6c9e6 commit d5fc8f4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -32,6 +33,9 @@ private static void createArrow(World world, LivingEntity entity, ItemStack cros
CallbackInfoReturnable<PersistentProjectileEntity> 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());
Expand Down

0 comments on commit d5fc8f4

Please sign in to comment.