mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +00:00
Send motion to players on downwards movement
This commit is contained in:
parent
a349f6d4dd
commit
b61c54c9cb
@ -1365,8 +1365,8 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
||||
|
||||
public function setMotion(Vector3 $mot){
|
||||
if(parent::setMotion($mot)){
|
||||
if($this->motionY > 0){
|
||||
$this->addEntityMotion($this->getId(), $this->motionX, $this->motionY, $this->motionZ);
|
||||
if($this->motionY > 0)
|
||||
$this->startAirTicks = (-(log($this->gravity / ($this->gravity + $this->drag * $this->motionY))) / $this->drag) * 2 + 5;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user