Player: remove superfluous conditions for RESPAWN action handling

spawned is always true here because of the condition at the top of the function.
isOnline() is always true here because the handler won't even be called if it isn't.
This commit is contained in:
Dylan K. Taylor 2019-12-05 14:52:12 +00:00
parent 18863b1098
commit 16817ff301

View File

@ -2828,7 +2828,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
$this->stopSleep();
break;
case PlayerActionPacket::ACTION_RESPAWN:
if(!$this->spawned or $this->isAlive() or !$this->isOnline()){
if($this->isAlive()){
break;
}