use Player->sendDataPacket() with immediate parameter

This commit is contained in:
Dylan K. Taylor
2017-11-03 19:00:08 +00:00
parent 4533df17cf
commit 6ebe3bfbea
2 changed files with 4 additions and 16 deletions

View File

@@ -2044,11 +2044,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
$pk = new PlayStatusPacket();
$pk->status = $status;
$pk->protocol = $this->protocol;
if($immediate){
$this->directDataPacket($pk);
}else{
$this->dataPacket($pk);
}
$this->sendDataPacket($pk, false, $immediate);
}
public function handleResourcePackClientResponse(ResourcePackClientResponsePacket $packet) : bool{