From 25500ae53279e9a774f824712668705697e5e516 Mon Sep 17 00:00:00 2001 From: Az928 Date: Tue, 17 Oct 2017 14:29:40 +0600 Subject: [PATCH] fix typo --- src/VanillaEnchants/handlers/Power.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VanillaEnchants/handlers/Power.php b/src/VanillaEnchants/handlers/Power.php index 1729bc3..bd99642 100644 --- a/src/VanillaEnchants/handlers/Power.php +++ b/src/VanillaEnchants/handlers/Power.php @@ -23,7 +23,7 @@ public function onDamage(EntityDamageEvent $event){ $item = $damager->getInventory()->getItemInHand(); if($item->hasEnchantment(19) && $item->getId() == 261){ $add = $item->getEnchantment(19)->getLevel() * 0.5 + 3; - $event->setFinalDamage($event->getFinalDamage() + $add); + $event->setDamage($event->getFinalDamage() + $add); } } }