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

Commit

Permalink
Fix high knockback
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAz928 authored Oct 18, 2017
1 parent fba98a2 commit 3a442b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/VanillaEnchants/handlers/Knockback.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public function onDamage(EntityDamageEvent $event){
}
$item = $damager->getInventory()->getItemInHand();
if($item->hasEnchantment(12)){
$add = $item->getEnchantment(12)->getLevel() * 0.35;
$add = $item->getEnchantment(12)->getLevel() * 0.2;
$event->setKnockback($event->getKnockback() + $add);
}
}
}
}
}

0 comments on commit 3a442b7

Please sign in to comment.