mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 17:20:02 +00:00
Player: removed redundant proxy function
This commit is contained in:
parent
364d278714
commit
e4b6a18404
@ -2927,12 +2927,6 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function handleRequestChunkRadius(RequestChunkRadiusPacket $packet) : bool{
|
|
||||||
$this->setViewDistance($packet->radius);
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function handleItemFrameDropItem(ItemFrameDropItemPacket $packet) : bool{
|
public function handleItemFrameDropItem(ItemFrameDropItemPacket $packet) : bool{
|
||||||
if(!$this->spawned or !$this->isAlive()){
|
if(!$this->spawned or !$this->isAlive()){
|
||||||
return true;
|
return true;
|
||||||
|
@ -201,7 +201,9 @@ class PlayerNetworkSessionAdapter extends NetworkSession{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function handleRequestChunkRadius(RequestChunkRadiusPacket $packet) : bool{
|
public function handleRequestChunkRadius(RequestChunkRadiusPacket $packet) : bool{
|
||||||
return $this->player->handleRequestChunkRadius($packet);
|
$this->player->setViewDistance($packet->radius);
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function handleItemFrameDropItem(ItemFrameDropItemPacket $packet) : bool{
|
public function handleItemFrameDropItem(ItemFrameDropItemPacket $packet) : bool{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user