Player: removed redundant proxy function

This commit is contained in:
Dylan K. Taylor 2018-03-23 19:56:35 +00:00
parent 364d278714
commit e4b6a18404
2 changed files with 3 additions and 7 deletions

View File

@ -2927,12 +2927,6 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
return true;
}
public function handleRequestChunkRadius(RequestChunkRadiusPacket $packet) : bool{
$this->setViewDistance($packet->radius);
return true;
}
public function handleItemFrameDropItem(ItemFrameDropItemPacket $packet) : bool{
if(!$this->spawned or !$this->isAlive()){
return true;

View File

@ -201,7 +201,9 @@ class PlayerNetworkSessionAdapter extends NetworkSession{
}
public function handleRequestChunkRadius(RequestChunkRadiusPacket $packet) : bool{
return $this->player->handleRequestChunkRadius($packet);
$this->player->setViewDistance($packet->radius);
return true;
}
public function handleItemFrameDropItem(ItemFrameDropItemPacket $packet) : bool{