Merge pull request #2555 from Striker209MPE/patch-6

Removed useless spawned check...
This commit is contained in:
Shoghi Cervantes 2015-01-24 10:29:18 +01:00
commit 80b6a8ebaf

View File

@ -1232,7 +1232,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
if($this->onGround){ if($this->onGround){
$this->inAirTicks = 0; $this->inAirTicks = 0;
}else{ }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)); $expectedVelocity = (-$this->gravity) / $this->drag - ((-$this->gravity) / $this->drag) * exp(-$this->drag * ($this->inAirTicks - 2));
$diff = ($this->speed->y - $expectedVelocity) ** 2; $diff = ($this->speed->y - $expectedVelocity) ** 2;