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

@ -1025,7 +1025,7 @@ abstract class Entity{
protected function updateFallState(float $distanceThisTick, bool $onGround) : void{
if($onGround){
if($this->fallDistance > 0){
$this->fall($this->fallDistance);
$this->fall();
$this->resetFallDistance();
}
}elseif($distanceThisTick < $this->fallDistance){
@ -1042,7 +1042,7 @@ abstract class Entity{
/**
* Called when a falling entity hits the ground.
*/
public function fall(float $fallDistance) : void{
public function fall() : void{
}