Player: Remove another redundant attack check

This is checked in Player->attack() anyway.
This commit is contained in:
Dylan K. Taylor 2017-12-14 11:03:13 +00:00
parent 78f8fe602c
commit 532600ab67

View File

@ -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;
}