Update Player.php

This commit is contained in:
Dylan T 2019-11-12 08:19:05 +00:00 committed by GitHub
parent a81d8dd6d5
commit ba5a5981a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2912,6 +2912,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
public function handleRespawn(RespawnPacket $packet) : bool{
if(!$this->isAlive() && $packet->respawnState === RespawnPacket::CLIENT_READY_TO_SPAWN){
$this->sendRespawnPacket($this, RespawnPacket::READY_TO_SPAWN);
return true;
}
return false;