mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Player: Remove another redundant attack check
This is checked in Player->attack() anyway.
This commit is contained in:
parent
78f8fe602c
commit
532600ab67
@ -2409,9 +2409,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
||||
if(!$this->canInteract($target, 8)){
|
||||
$cancelled = true;
|
||||
}elseif($target instanceof Player){
|
||||
if(($target->getGamemode() & 0x01) > 0){
|
||||
return true;
|
||||
}elseif($this->server->getConfigBool("pvp") !== true){
|
||||
if($this->server->getConfigBool("pvp") !== true){
|
||||
$cancelled = true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user