mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 09:49:50 +00:00
Fixed a typo
`$source->isCancelled()` shouldn't be checked twice
This commit is contained in:
parent
8aa8ae5094
commit
5b3e65345f
@ -2658,7 +2658,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
|||||||
|
|
||||||
parent::attack($damage, $source);
|
parent::attack($damage, $source);
|
||||||
|
|
||||||
if($source instanceof EntityDamageEvent and $source->isCancelled()){
|
if($source instanceof EntityDamageEvent){
|
||||||
if($source->isCancelled()){
|
if($source->isCancelled()){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user