Fixed a typo

`$source->isCancelled()` shouldn't be checked twice
This commit is contained in:
PEMapModder 2015-03-17 22:20:33 +08:00
parent 8aa8ae5094
commit 5b3e65345f

View File

@ -2658,7 +2658,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
parent::attack($damage, $source);
if($source instanceof EntityDamageEvent and $source->isCancelled()){
if($source instanceof EntityDamageEvent){
if($source->isCancelled()){
return;
}