mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
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:
parent
18863b1098
commit
16817ff301
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user