diff --git a/src/VanillaEnchants/handlers/Punch.php b/src/VanillaEnchants/handlers/Punch.php index c07baaa..3edd71c 100644 --- a/src/VanillaEnchants/handlers/Punch.php +++ b/src/VanillaEnchants/handlers/Punch.php @@ -21,10 +21,10 @@ public function onDamage(EntityDamageEvent $event){ return false; } $item = $damager->getInventory()->getItemInHand(); - if($item->hasEnchantment(20) && $item->isBow()){ + if($item->hasEnchantment(20) && $item->getId() == 261){ $add = $item->getEnchantment(20)->getLevel() * 0.45; $event->setKnockback($event->getKnockback() + $add); } } } -} \ No newline at end of file +}