mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Promote some constructors
This commit is contained in:
@ -29,13 +29,12 @@ use pocketmine\player\Player;
|
||||
* Called when a player requests a different viewing distance than the current one.
|
||||
*/
|
||||
class PlayerViewDistanceChangeEvent extends PlayerEvent{
|
||||
protected int $newDistance;
|
||||
protected int $oldDistance;
|
||||
|
||||
public function __construct(Player $player, int $oldDistance, int $newDistance){
|
||||
public function __construct(
|
||||
Player $player,
|
||||
protected int $oldDistance,
|
||||
protected int $newDistance
|
||||
){
|
||||
$this->player = $player;
|
||||
$this->oldDistance = $oldDistance;
|
||||
$this->newDistance = $newDistance;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user