Added missing brace

This commit is contained in:
Shoghi Cervantes 2015-05-30 17:29:38 +02:00
parent b61c54c9cb
commit 7c806c7920
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89

View File

@ -1366,7 +1366,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
public function setMotion(Vector3 $mot){ public function setMotion(Vector3 $mot){
if(parent::setMotion($mot)){ if(parent::setMotion($mot)){
$this->addEntityMotion($this->getId(), $this->motionX, $this->motionY, $this->motionZ); $this->addEntityMotion($this->getId(), $this->motionX, $this->motionY, $this->motionZ);
if($this->motionY > 0) if($this->motionY > 0){
$this->startAirTicks = (-(log($this->gravity / ($this->gravity + $this->drag * $this->motionY))) / $this->drag) * 2 + 5; $this->startAirTicks = (-(log($this->gravity / ($this->gravity + $this->drag * $this->motionY))) / $this->drag) * 2 + 5;
} }