Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Commit

Permalink
Fix power enchant
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAz928 authored Oct 17, 2017
1 parent 55eab79 commit 1ca90a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/VanillaEnchants/handlers/Power.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ public function onDamage(EntityDamageEvent $event){
return false;
}
$item = $damager->getInventory()->getItemInHand();
if($item->hasEnchantment(19) && $item->isBow()){
if($item->hasEnchantment(19) && $item->getId() == 261){
$add = $item->getEnchantment(19)->getLevel() * 0.5 + 3;
$event->setFinalDamage($event->getFinalDamage() + $add);
$event->setFinalDamage($event->getFinalDamage() + $add);
}
}
}
}
}

0 comments on commit 1ca90a8

Please sign in to comment.