Removed useless spawned check...

because it has already be done before
This commit is contained in:
Striker209MPE 2015-01-20 16:29:29 +01:00
parent 5bd76e955c
commit 9fac896f28

View File

@ -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;