mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +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:
@ -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() : void{
|
||||
protected function onHitGround() : void{
|
||||
if(!$this->flying){
|
||||
parent::fall();
|
||||
parent::onHitGround();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user