Entity: remove fallDistance parameter from fall()

This commit is contained in:
Dylan K. Taylor
2021-09-05 13:34:43 +01:00
parent 7e82cafdeb
commit 6ecad153ea
3 changed files with 6 additions and 6 deletions

View File

@ -1200,9 +1200,9 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
$this->sendPosition($from, $from->yaw, $from->pitch, MovePlayerPacket::MODE_RESET);
}
public function fall(float $fallDistance) : void{
public function fall() : void{
if(!$this->flying){
parent::fall($fallDistance);
parent::fall();
}
}