mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 19:59:11 +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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user