mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Entity: Rename fall() to onHitGround(), and make it protected
this had no business being exposed to public API in the first place.
This commit is contained in:
@ -1025,7 +1025,7 @@ abstract class Entity{
|
||||
protected function updateFallState(float $distanceThisTick, bool $onGround) : void{
|
||||
if($onGround){
|
||||
if($this->fallDistance > 0){
|
||||
$this->fall();
|
||||
$this->onHitGround();
|
||||
$this->resetFallDistance();
|
||||
}
|
||||
}elseif($distanceThisTick < $this->fallDistance){
|
||||
@ -1042,7 +1042,7 @@ abstract class Entity{
|
||||
/**
|
||||
* Called when a falling entity hits the ground.
|
||||
*/
|
||||
public function fall() : void{
|
||||
protected function onHitGround() : void{
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user