Skip to content

Commit

Permalink
Bow NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueDarkLord committed Feb 16, 2024
1 parent f022576 commit d928492
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ issues = https://github.com/Crazy-Crew/CrazyEnchantments/issues

group = com.badbones69.crazyenchantments
description = Adds over 80 unique enchantments to your server and more!
version = 2.2.2
version = 2.2.3
apiVersion = 1.20

minecraftVersion = 1.20.4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public void onArrowDamage(EntityDamageByEntityEvent event) {
for (BowEnchantment bowEnchantment : bowEnchantmentManager.getBowEnchantments()) {
CEnchantments enchantment = bowEnchantment.getEnchantment();

if (!EnchantUtils.isEventActive(enchantment, entity, arrow.bow(), arrow.enchantments())) continue;
if (!EnchantUtils.isEventActive(enchantment, arrow.getShooter(), arrow.bow(), arrow.enchantments())) continue;

if (bowEnchantment.isPotionEnchantment()) {
bowEnchantment.getPotionEffects().forEach(effect -> entity.addPotionEffect(new PotionEffect(effect.potionEffect(), effect.duration(),
Expand Down

0 comments on commit d928492

Please sign in to comment.