mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 09:19:42 +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);
|
||||
|
||||
if($source instanceof EntityDamageEvent and $source->isCancelled()){
|
||||
if($source instanceof EntityDamageEvent){
|
||||
if($source->isCancelled()){
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user