diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index a46a62594..591dab0cf 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -1232,7 +1232,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{ if($this->onGround){ $this->inAirTicks = 0; }else{ - if($this->inAirTicks > 20 and $this->isSurvival() and !$this->isSleeping() and $this->spawned){ + if($this->inAirTicks > 20 and $this->isSurvival() and !$this->isSleeping()){ $expectedVelocity = (-$this->gravity) / $this->drag - ((-$this->gravity) / $this->drag) * exp(-$this->drag * ($this->inAirTicks - 2)); $diff = ($this->speed->y - $expectedVelocity) ** 2; diff --git a/src/pocketmine/block/Sapling.php b/src/pocketmine/block/Sapling.php index 6015b85a3..7b92e4518 100644 --- a/src/pocketmine/block/Sapling.php +++ b/src/pocketmine/block/Sapling.php @@ -38,7 +38,7 @@ class Sapling extends Flowable{ protected $id = self::SAPLING; public function __construct($meta = 0){ - $this->meta = 0; + $this->meta = $meta; } public function canBeActivated(){