Maybe I should stop using PhpStorm EAPs

This commit is contained in:
Dylan K. Taylor 2017-08-21 13:51:58 +01:00
parent 456ddd3fb3
commit 672b7610a9

View File

@ -2309,7 +2309,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
$ev->setCancelled();
}
$target->attack($ev->getFinalDamage(), $ev);
$target->attack($ev);
if($ev->isCancelled()){
if($item->isTool() and $this->isSurvival()){